Click or drag to resize
OrderedMultiDictionaryTKey, TValueCloneContents Method
Makes a deep clone of this dictionary. A new dictionary is created with a clone of each entry of this dictionary, by calling ICloneable.Clone on each element. If TKey or TValue is a value type, then each element is copied as if by simple assignment.

Namespace: X3Platform.Collections
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public OrderedMultiDictionary<TKey, TValue> CloneContents()

Return Value

Type: OrderedMultiDictionaryTKey, TValue
The cloned dictionary.
Exceptions
ExceptionCondition
InvalidOperationExceptionTKey or TValue is a reference type that does not implement ICloneable.
Remarks

If TKey or TValue is a reference type, it must implement ICloneable. Otherwise, an InvalidOperationException is thrown.

Cloning the dictionary takes time O(N log N), where N is the number of key-value pairs in the dictionary.

See Also