|
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
)
<ExtensionAttribute>
Public Shared Function DeepClone(Of T) (
obj As T
) As T
Request Example
View SourceParameters
- obj
- Type: T
The object.
Type Parameters
- T
- The type of the model to be copied.
Return Value
Type:
TA 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