| SystemExtensionsCloneT Method |
Perform a deep Copy of the object.
Reference Article http://www.codeproject.com/KB/tips/SerializedObjectCloner.aspx
Provides a method for performing a deep copy of an object.
Binary Serialization is used to perform the copy.
Namespace:
Slash.Unity.DataBind.Core.Utils
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax public static T Clone<T>(
this T source
)
<ExtensionAttribute>
Public Shared Function Clone(Of T) (
source As T
) As T
public:
[ExtensionAttribute]
generic<typename T>
static T Clone(
T source
)
[<ExtensionAttribute>]
static member Clone :
source : 'T -> 'T
Parameters
- source
- Type: T
The object instance to copy.
Type Parameters
- T
- The type of object being copied.
Return Value
Type:
TThe copied 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