Returns a strong-typed clone of the instance.
Namespace:
Enkoni.Framework
Assembly:
Enkoni.Framework (in Enkoni.Framework.dll) Version: 1.3.0.1
Syntaxpublic static T Clone<T>(
this T instance
)
where T : ICloneable
<ExtensionAttribute>
Public Shared Function Clone(Of T As ICloneable) (
instance As T
) As T
public:
[ExtensionAttribute]
generic<typename T>
where T : ICloneable
static T Clone(
T instance
)
[<ExtensionAttribute>]
static member Clone :
instance : 'T -> 'T when 'T : ICloneable
Parameters
- instance
- Type: T
The instance on which the clone-method will be invoked.
Type Parameters
- T
- The actual type of the instance that will be cloned.
Return Value
Type:
TA typed clone of the instance.
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