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.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic OrderedMultiDictionary<TKey, TValue> CloneContents()
public:
OrderedMultiDictionary<TKey, TValue>^ CloneContents()
Return Value
Type:
OrderedMultiDictionaryTKey,
TValueThe cloned dictionary.
Exceptions
RemarksIf 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