SortedDictionary(TKey, TValue) Constructor

SortedDictionary(Of TKey, TValue) Constructor

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes a new instance of the SortedDictionary(Of 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.

  NameDescription
Public method SortedDictionary(Of TKey, TValue) Initializes a new instance of the SortedDictionary(Of TKey, TValue) class that is empty and uses the default IComparer(Of T) implementation for the key type.
Public method SortedDictionary(Of TKey, TValue)(IComparer(Of TKey)) Initializes a new instance of the SortedDictionary(Of TKey, TValue) class that is empty and uses the specified IComparer(Of T) implementation to compare keys.
Public method SortedDictionary(Of TKey, TValue)(IDictionary(Of TKey, TValue)) Initializes a new instance of the SortedDictionary(Of TKey, TValue) class that contains elements copied from the specified IDictionary(Of TKey, TValue) and uses the default IComparer(Of T) implementation for the key type.
Public method SortedDictionary(Of TKey, TValue)(IDictionary(Of TKey, TValue), IComparer(Of TKey)) Initializes a new instance of the SortedDictionary(Of TKey, TValue) class that contains elements copied from the specified IDictionary(Of TKey, TValue) and uses the specified IComparer(Of T) implementation to compare keys.
Top

Show:
© 2017 Microsoft