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
Exception | Condition |
---|---|
InvalidOperationException | TKey does not implement IComparable<TKey>. |