CorLib  

SortedList

SortedList overview

Implements:

ICollection 
IDictionary 
IEnumerable 
IObject 
IVersionableCollection 

Public:

Properties:
Capacity (get) Returns the size of the underlying array.  
Capacity (let) Sets the size of the underlying array.  
Count (get) Returns the number of items in the list.  
IsFixedSize (get) Returns if the list can change in size or not.  
IsReadOnly (get) Returns if the list can be modified in any way.  
Item (get) Returns the value associated with the given key.  
Item (let) Sets a value to a key.  
Item (set) Sets a value to a key.  
Keys (get) Returns the keys in the sorted list.  
Values (get) Returns a list of the values in the list.  
Methods:
Add Adds a key/value pair to the list.  
Clear Removes all of the items from the list.  
Clone Returns a cloned version of this instance.  
Contains Searches the list to determine if the key is contained in the list.  
ContainsKey Searches the list to determine if the key is contained in the list.  
ContainsValue Searches the list to determine if the value is contained in the list.  
CopyTo Creates a DictionaryEntry for each Key/Value pair and places it in the array.  
Equals Returns a boolean indicating if the value and this object instance are the same instance.  
GetByIndex Retrieves a value in the list by an index.  
GetEnumerator Returns an enumerator that can be used to iterate through the key/value pairs.  
GetHashCode Returns a pseudo-unique number identifying this instance.  
GetKey Returns the key at the specified index in the list.  
GetKeyList Returns a ReadOnly IList object that is used to access the keys in the list.  
GetValueList Returns a ReadOnly IList object that is used to access the values in the list.  
IndexOfKey Searches for a key in the list and returns the index it was found.  
IndexOfValue Searches for a value in the list and returns the index it was found.  
Remove Removes a key/value pair based on the key.  
RemoveAt Removes a key/value pair at a specific index in the list.  
SetByIndex Sets the value at a specific index in the list.  
ToString Returns a string representation of this object instance.  
TrimToSize Sets the capacity to the number of items in the list.  

See Also