SortedDictionary<TKey, TValue> Constructor

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

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Supported by Portable Class Library SortedDictionary<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.
Public method Supported by Portable Class Library SortedDictionary<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.
Public method Supported by Portable Class Library SortedDictionary<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.
Public method Supported by Portable Class Library SortedDictionary<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.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft