Wintellect.PowerCollections Namespace
Algorithms Class
GhostDoc Pro Sample Help File

OrderedDictionary<(Of <(<'TKey, TValue>)>)> Constructor (IEnumerable<(Of <(<'KeyValuePair<(Of <(<'TKey, TValue>)>)>>)>)>, Comparison<(Of <(<'TKey>)>)>)

Creates a new OrderedDictionary. The passed delegate 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,
	Comparison<TKey> comparison
)
Public Sub New ( _
	keysAndValues As IEnumerable(Of KeyValuePair(Of TKey, TValue)), _
	comparison As Comparison(Of TKey) _
)
public:
OrderedDictionary(
	IEnumerable<KeyValuePair<TKey, TValue>^>^ keysAndValues, 
	Comparison<TKey>^ comparison
)

Parameters

keysAndValues
Type: IEnumerable<(Of <(<'KeyValuePair<(Of <(<'TKey, TValue>)>)>>)>)>
A collection of keys and values whose contents are used to initialized the dictionary.
comparison
Type: Comparison<(Of <(<'TKey>)>)>
A delegate to a method that will be used to compare keys.