Click or drag to resize
Accord.NET (logo)

ExtensionMethodsDeepCloneT Method

Note: This API is now obsolete.

Copies a collection by calling the ICloneable.Clone method for each element inside it.

Namespace:  Accord
Assembly:  Accord (in Accord.dll) Version: 3.5.0
[ObsoleteAttribute("Please use Matrix.Copy() instead.")]
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