SortedList::Keys Property
Gets the keys in a SortedList object.
Assembly: mscorlib (in mscorlib.dll)
Property Value
Type: System.Collections::ICollection^An ICollection object containing the keys in the SortedList object.
Implements
IDictionary::KeysThe ICollection object is a read-only view of the keys 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 keys of the SortedList.
This property is similar to the GetKeyList method, but returns an ICollection object instead of an IList object.
This method is an O(1) operation.
Available since 10
.NET Framework
Available since 1.1