Click or drag to resize

ArrayExtensionsCloneDeepT Method

Clones the array deep, i.e. the elements will be cloned for the new array.

Namespace: Altaxo.Collections
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static T[] CloneDeep<T>(
	this T[] array
)
where T : class, ICloneable

Parameters

array  T
The array to clone.

Type Parameters

T
The type of element.

Return Value

T
Cloned array, with each of the elements a clone from the original element.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type T. 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).
Exceptions
ExceptionCondition
NullReferenceExceptionnameof(array)
See Also