Click or drag to resize

CloneableCloneT Method

Returns a strong-typed clone of the instance.

Namespace:  Enkoni.Framework
Assembly:  Enkoni.Framework (in Enkoni.Framework.dll) Version: 1.3.0.1
Syntax
public static T Clone<T>(
	this T instance
)
where 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: T
A 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