Creates a deep copy of an object.

public static T DeepClone<T>(T original, Dictionary<object, object> copiedReferencesDict)
Returns:
T

Parameters

original T

Object to copy.

copiedReferencesDict Dictionary<object, object>

Dictionary of already copied objects (Keys: original objects, Values: their copies).

Type Parameters

T

Object type.

In this article