OrderedDictionary<(Of <(<'TKey, TValue>)>)> Constructor (IEnumerable<(Of <(<'KeyValuePair<(Of <(<'TKey, TValue>)>)>>)>)>, IComparer<(Of <(<'TKey>)>)>)
Creates a new OrderedDictionary. The Compare method of the passed comparison object will be used to compare keys in this dictionary.
A collection and keys and values (typically another dictionary) is used to initialized the contents of the dictionary.
Namespace:
Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
public OrderedDictionary( IEnumerable<KeyValuePair<TKey, TValue>> keysAndValues, IComparer<TKey> comparer )
Public Sub New ( _ keysAndValues As IEnumerable(Of KeyValuePair(Of TKey, TValue)), _ comparer As IComparer(Of TKey) _ )
public: OrderedDictionary( IEnumerable<KeyValuePair<TKey, TValue>^>^ keysAndValues, IComparer<TKey>^ comparer )
Parameters
- keysAndValues
- Type: IEnumerable<(Of <(<'KeyValuePair<(Of <(<'TKey, TValue>)>)>>)>)>
A collection of keys and values whose contents are used to initialized the dictionary.