Click or drag to resize
OrderedDictionaryTKey, TValue Constructor (IEnumerableKeyValuePairTKey, TValue, IComparerTKey)

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: X3Platform.Collections
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public OrderedDictionary(
	IEnumerable<KeyValuePair<TKey, TValue>> keysAndValues,
	IComparer<TKey> comparer
)

Parameters

keysAndValues
Type: System.Collections.GenericIEnumerableKeyValuePairTKey, TValue
A collection of keys and values whose contents are used to initialized the dictionary.
comparer
Type: System.Collections.GenericIComparerTKey
An instance of IComparer<TKey> that will be used to compare keys.
Remarks
The GetHashCode and Equals methods of the provided IComparer<TKey> will never be called, and need not be implemented.
See Also