Wintellect.PowerCollections Namespace
Algorithms Class
GhostDoc Pro Sample Help File

OrderedDictionary<(Of <(<'TKey, TValue>)>)>..::..Clone Method

Makes a shallow clone of this dictionary; i.e., if keys or values of the dictionary are reference types, then they are not cloned. If TKey or TValue is a value type, then each element is copied as if by simple assignment.

Namespace:  Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax


public OrderedDictionary<TKey, TValue> Clone()
Public Function Clone As OrderedDictionary(Of TKey, TValue)
public:
OrderedDictionary<TKey, TValue>^ Clone()

Return Value

The cloned dictionary.

Remarks


Cloning the dictionary takes time O(N), where N is the number of keys in the dictionary.