ModelExtensionsDeepCopyT Method |
Namespace:
Xcalibur.Extensions
Assembly:
Xcalibur.Extensions (in Xcalibur.Extensions.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax public static T DeepCopy<T>(
this T oSource
)
<ExtensionAttribute>
Public Shared Function DeepCopy(Of T) (
oSource As T
) As T
public:
[ExtensionAttribute]
generic<typename T>
static T DeepCopy(
T oSource
)
[<ExtensionAttribute>]
static member DeepCopy :
oSource : 'T -> 'T
Parameters
- oSource
- Type: T
The source object.
Type Parameters
- T
Return Value
Type:
TUsage 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).
Examples 1var myNewObject = myObject.DeepCopy();
See Also