SortedList
Represents a collection of key/value pairs that are sorted by the keys and are accessible by key and by index.
Gets or sets the capacity of a SortedList object.
Gets the number of elements contained in a SortedList object.
Gets a value indicating whether a SortedList object has a fixed size.
Gets a value indicating whether a SortedList object is read-only.
Gets a value indicating whether access to a SortedList object is synchronized (thread safe).
Gets and sets the value associated with a specific key in a SortedList object.
Gets the keys in a SortedList object.
Gets an object that can be used to synchronize access to a SortedList object.
Gets the values in a SortedList object.
public SortedList()
Initializes a new instance of the SortedList class that is empty, has the default initial capacity, and is sorted according to the IComparable interface implemented by each key added to the SortedList object.
Initializes a new instance of the SortedList class that is empty, has the specified initial capacity, and is sorted according to the IComparable interface implemented by each key added to the SortedList object.
Initializes a new instance of the SortedList class that is empty, has the default initial capacity, and is sorted according to the specified IComparer interface.
Initializes a new instance of the SortedList class that is empty, has the specified initial capacity, and is sorted according to the specified IComparer interface.
Initializes a new instance of the SortedList class that contains elements copied from the specified dictionary, has the same initial capacity as the number of elements copied, and is sorted according to the IComparable interface implemented by each key.
Initializes a new instance of the SortedList class that contains elements copied from the specified dictionary, has the same initial capacity as the number of elements copied, and is sorted according to the specified IComparer interface.
Returns a synchronized (thread-safe) wrapper for a SortedList object.
Adds an element with the specified key and value to a SortedList object.
Removes all elements from a SortedList object.
Creates a shallow copy of a SortedList object.
Determines whether a SortedList object contains a specific key.
Determines whether a SortedList object contains a specific key.
Determines whether a SortedList object contains a specific value.
Copies SortedList elements to a one-dimensional Array object, starting at the specified index in the array.
Gets the value at the specified index of a SortedList object.
Returns an IDictionaryEnumerator object that iterates through a SortedList object.
Gets the key at the specified index of a SortedList object.
Gets the keys in a SortedList object.
Gets the values in a SortedList object.
Returns the zero-based index of the specified key in a SortedList object.
Returns the zero-based index of the first occurrence of the specified value in a SortedList object.
Removes the element with the specified key from a SortedList object.
Removes the element at the specified index of a SortedList object.
Replaces the value at a specific index in a SortedList object.
Sets the capacity to the actual number of elements in a SortedList object.