Method CloneJson
CloneJson<T>(T)
Perform a deep Copy of the object, using Json as a serialisation method. NOTE: Private members are not cloned using this method.
Declaration
public static T CloneJson<T>(this T source)
Parameters
Type | Name | Description |
---|---|---|
T | source | The object instance to copy. |
Returns
Type | Description |
---|---|
T | The copied object. |
Type Parameters
Name | Description |
---|---|
T | The type of object being copied. |