Export (0) Print
Expand All

SortedDictionary Members

Represents a collection of key/value pairs that are sorted on the key.

The following tables list the members exposed by the SortedDictionary generic type.

  Name Description
Public method SortedDictionary Overloaded. Initializes a new instance of the SortedDictionary class.
Top

  Name Description
Public property Comparer Gets the IComparer used to order the elements of the SortedDictionary.
Public property Count Gets the number of key/value pairs contained in the SortedDictionary.
Public property Item Gets or sets the value associated with the specified key.
Public property Keys Gets a collection containing the keys in the SortedDictionary.
Public property Values Gets a collection containing the values in the SortedDictionary.
Top

(see also Protected Methods )
  Name Description
Public method Add Adds an element with the specified key and value into the SortedDictionary.
Public method Clear Removes all elements from the SortedDictionary.
Public method ContainsKey Determines whether the SortedDictionary contains an element with the specified key.
Public method ContainsValue Determines whether the SortedDictionary contains an element with the specified value.
Public method CopyTo Copies the elements of the SortedDictionary to the specified array of KeyValuePair structures, starting at the specified index.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method GetEnumerator Returns an enumerator that iterates through the SortedDictionary.
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method Remove Removes the element with the specified key from the SortedDictionary.
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Public method TryGetValue Gets the value associated with the specified key.
Top

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top

  Name Description
Explicit interface implementation Method System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Add Adds an item to the ICollection.
Explicit interface implementation Method System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Contains Determines whether the ICollection contains a specific key and value.
Explicit interface implementation Method System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Remove Removes the first occurrence of the specified element from the ICollection.
Explicit interface implementation Method System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>>.GetEnumerator Returns an enumerator that iterates through the collection.
Explicit interface implementation Method System.Collections.ICollection.CopyTo Copies the elements of the ICollection to an array, starting at the specified array index.
Explicit interface implementation Method System.Collections.IDictionary.Add Adds an element with the provided key and value to the IDictionary.
Explicit interface implementation Method System.Collections.IDictionary.Contains Determines whether the IDictionary contains an element with the specified key.
Explicit interface implementation Method System.Collections.IDictionary.GetEnumerator Returns an IDictionaryEnumerator for the IDictionary.
Explicit interface implementation Method System.Collections.IDictionary.Remove Removes the element with the specified key from the IDictionary.
Explicit interface implementation Method System.Collections.IEnumerable.GetEnumerator Returns an enumerator that iterates through a collection.
Explicit interface implementation Property System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.IsReadOnly Gets a value indicating whether the ICollection is read-only.
Explicit interface implementation Property System.Collections.Generic.IDictionary<TKey,TValue>.Keys Gets an ICollection containing the keys of the IDictionary.
Explicit interface implementation Property System.Collections.Generic.IDictionary<TKey,TValue>.Values Gets an ICollection containing the values in the IDictionary.
Explicit interface implementation Property System.Collections.ICollection.IsSynchronized Gets a value indicating whether access to the ICollection is synchronized (thread safe).
Explicit interface implementation Property System.Collections.ICollection.SyncRoot Gets an object that can be used to synchronize access to the ICollection.
Explicit interface implementation Property System.Collections.IDictionary.IsFixedSize Gets a value indicating whether the IDictionary has a fixed size.
Explicit interface implementation Property System.Collections.IDictionary.IsReadOnly Gets a value indicating whether the IDictionary is read-only.
Explicit interface implementation Property System.Collections.IDictionary.Item Gets or sets the element with the specified key.
Explicit interface implementation Property System.Collections.IDictionary.Keys Gets an ICollection containing the keys of the IDictionary.
Explicit interface implementation Property System.Collections.IDictionary.Values Gets an ICollection containing the values in the IDictionary.
Top

Community Additions

ADD
Show:
© 2014 Microsoft