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

Creates a new OrderedDictionary. The TKey must implemented IComparable<TKey> or IComparable. The CompareTo method of this interface 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
)

Parameters

keysAndValues
Type: System.Collections.GenericIEnumerableKeyValuePairTKey, TValue
A collection of keys and values whose contents are used to initialized the dictionary.
Exceptions
ExceptionCondition
InvalidOperationExceptionTKey does not implement IComparable<TKey>.
See Also