SortedDictionary Methods |
The SortedDictionary type exposes the following members.
| Name | Description | |
|---|---|---|
| Add |
Adds an element with the provided key and value to the
IDictionary object.
(Overrides SortedListAdd(Object, Object).) | |
| AssertIsVariableSize |
Throw an exception if this dictionary is fixed size.
| |
| AssertIsWriteable |
Throw an exception if this dictionary is read-only.
| |
| Clear |
Removes all elements from the
IDictionary object.
(Overrides SortedListClear.) | |
| Clone |
Creates a new object that is a copy of the current instance.
(Overrides SortedListClone.) | |
| Contains |
Determines whether this dictionary contains an entry with the
specified key.
(Overrides SortedListContains(Object).) | |
| ContainsKey |
Determines whether the SortedDictionary contains
a specific key.
(Overrides SortedListContainsKey(Object).) | |
| ContainsValue |
Determines whether the SortedDictionary contains
a specific value.
(Overrides SortedListContainsValue(Object).) | |
| CopyTo |
Copies the elements of the collection to an array, starting at
a particular array index.
(Overrides SortedListCopyTo(Array, Int32).) | |
| Equals(IDictionary) |
Compares this dictionary with another dictionary for equality.
| |
| Equals(Object) |
Determines whether the specified object is equal to this object.
(Overrides ObjectEquals(Object).) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetByIndex | Gets the value at the specified index of a SortedList object. (Inherited from SortedList.) | |
| GetEnumerator |
Returns an IDictionaryEnumerator
object for this dictionary.
(Overrides SortedListGetEnumerator.) | |
| GetHashCode |
Returns a hash code for this object.
(Overrides ObjectGetHashCode.) | |
| GetKey | Gets the key at the specified index of a SortedList object. (Inherited from SortedList.) | |
| GetKeyList | Gets the keys in a SortedList object. (Inherited from SortedList.) | |
| GetObjectData |
Overrides serialization method to add support for null value
serialization.
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| GetValueList | Gets the values in a SortedList object. (Inherited from SortedList.) | |
| IndexOfKey | Returns the zero-based index of the specified key in a SortedList object. (Inherited from SortedList.) | |
| IndexOfValue | Returns the zero-based index of the first occurrence of the specified value in a SortedList object. (Inherited from SortedList.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Remove |
Removes the element with the specified key from the
IDictionary object.
(Overrides SortedListRemove(Object).) | |
| RemoveAt | Removes the element at the specified index of a SortedList object. (Inherited from SortedList.) | |
| SetByIndex | Replaces the value at a specific index in a SortedList object. (Inherited from SortedList.) | |
| ToString |
Returns string representation of this instance.
(Overrides ObjectToString.) | |
| TrimToSize | Sets the capacity to the actual number of elements in a SortedList object. (Inherited from SortedList.) |