Click or drag to resize
Accord.NET (logo) ExtensionMethodsDeepCloneT Method
Copies a collection by calling the ICloneable.Clone method for each element inside it.

Namespace:  Accord
Assembly:  Accord (in Accord.dll) Version: 3.4.0
public static T DeepClone<T>(
	this T list
where T : Object, ICloneable
Request Example View Source


Type: T
The collection to be cloned.

Type Parameters


Return Value

Type: T
A copy of the collection where each element has also been copied.

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