For Babelfish Release 1.11.1.3

ObjectClonerCloneT Method

Perform a deep Copy of the object, using Json as a serialization method.

Definition

Namespace: Scopos.BabelFish.Helpers
Assembly: BabelFish (in BabelFish.dll) Version: 1.11.1.4+b1da393815f6638555a663d9a94167ecabea5695
C#
public static T Clone<T>(
	this T source
)

Parameters

source  T
The object instance to copy.

Type Parameters

T
The type of object being copied.

Return Value

T
The copied object.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type T. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also