Click or drag to resize
Accord.NET (logo)

SerializerDeepCloneT Method

Performs a deep copy of an object by serializing and deserializing it.

Namespace:  Accord.IO
Assembly:  Accord (in Accord.dll) Version: 3.8.0
Syntax
public static T DeepClone<T>(
	this T obj
)
Request Example View Source

Parameters

obj
Type: T
The object.

Type Parameters

T
The type of the model to be copied.

Return Value

Type: T
A deep copy of the given object.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . 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