DevForce Help Reference
DeepClone<T>(T) Method


Type of the object that will be cloned
Object that will be cloned
Creates a deep clone of the specified object, also creating clones of all referenced child and nested objects.
Syntax
'Declaration
 
Public Overloads Shared Function DeepClone(Of T)( _
   ByVal objectGraph As T _
) As T
'Usage
 
Dim objectGraph As T
Dim value As T
 
value = ReflectionCloner.DeepClone(Of T)(objectGraph)
public static T DeepClone<T>( 
   T objectGraph
)

Parameters

objectGraph
Object that will be cloned

Type Parameters

T
Type of the object that will be cloned

Return Value

A deep clone of the provided object
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ReflectionCloner Class
ReflectionCloner Members
Overload List

Send Feedback