Upraviť

Zdieľať cez


SortedList.Values Property

Definition

Gets the values in a SortedList object.

public:
 virtual property System::Collections::ICollection ^ Values { System::Collections::ICollection ^ get(); };
public virtual System.Collections.ICollection Values { get; }
member this.Values : System.Collections.ICollection
Public Overridable ReadOnly Property Values As ICollection

Property Value

An ICollection object containing the values in the SortedList object.

Implements

Remarks

The ICollection object is a read-only view of the values of the SortedList object. Modifications made to the underlying SortedList are immediately reflected in the ICollection.

The elements of the ICollection are sorted in the same order as the values of the SortedList.

This property is similar to the GetValueList method, but returns an ICollection object instead of an IList object.

This method is an O(1) operation.

Applies to

See also