Click or drag to resize

ExtensionsCopyT Method (T)

Copies an array.

Namespace:  Cauldron
Assembly:  Cauldron (in Cauldron.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
public static T[] Copy<T>(
	this T[] array
)

Parameters

array
Type: T
The array

Type Parameters

T
The element type of the array

Return Value

Type: T
A new array that contains the same elements as array

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).
Exceptions
ExceptionCondition
ArgumentNullExceptionarray is null
See Also