SortedDictionary<TKey, TValue> Constructor

 

Initializes a new instance of the SortedDictionary<TKey, TValue> class.

Namespace:   System.Collections.Generic
Assembly:  System (in System.dll)

NameDescription
System_CAPS_pubmethodSortedDictionary<TKey, TValue>()

Initializes a new instance of the SortedDictionary<TKey, TValue> class that is empty and uses the default IComparer<T> implementation for the key type.

System_CAPS_pubmethodSortedDictionary<TKey, TValue>(IComparer<TKey>)

Initializes a new instance of the SortedDictionary<TKey, TValue> class that is empty and uses the specified IComparer<T> implementation to compare keys.

System_CAPS_pubmethodSortedDictionary<TKey, TValue>(IDictionary<TKey, TValue>)

Initializes a new instance of the SortedDictionary<TKey, TValue> class that contains elements copied from the specified IDictionary<TKey, TValue> and uses the default IComparer<T> implementation for the key type.

System_CAPS_pubmethodSortedDictionary<TKey, TValue>(IDictionary<TKey, TValue>, IComparer<TKey>)

Initializes a new instance of the SortedDictionary<TKey, TValue> class that contains elements copied from the specified IDictionary<TKey, TValue> and uses the specified IComparer<T> implementation to compare keys.

Return to top
Show: