System.Collections.SortedList

Added in .NET 1.1


System.Collections.SortedList 

Methods

AddAppends an element after the last element in the collection and returns the index where it was inserted.
ClearRemoves all elements from the collection.
Clone 
ContainsReturns TRUE if an element exists in the collection.
ContainsKey 
ContainsValue 
CopyToCopies the elements from the collection to a new one-dimensional array, starting at the specified index in the array.
GetByIndexGets the value at a specified index
GetEnumeratorReturns an enumerator to iterate an ArrayList
GetKey 
GetKeyList 
GetValueList 
IndexOfKey 
IndexOfValue 
RemoveRemoves an element from the collection
RemoveAtRemoves an element at the specified index from the collection
SetByIndex 
SynchronizedAlphabetically sorts the elements
TrimToSize 

Properties

CapacityProperty contains the number of elements the srray can currently hold.
CountReturns the number of elements in the collection.
IsFixedSizeReturns TRUE if no more elements can be added to the collection.
IsReadOnlyReturns TRUE is the elements cannot be altered.
IsSynchronized 
Item 
Keys 
SyncRoot 
Values 

Generic Version

The generic version of this collection is System.Collections.Generic.SortedList


© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext