Vector<T>::CopyTo Method (array<T>)

Copies the vector instance to a specified destination array.

Namespace:  System.Numerics
Assembly:  System.Numerics.Vectors (in System.Numerics.Vectors.dll)

public:
void CopyTo(
	array<T>^ destination
)

Parameters

destination
Type: array<T>

The array to receive a copy of the vector values.

ExceptionCondition
ArgumentNullException

destination is nullptr.

ArgumentException

The number of elements in the current vector is greater than the number of elements available in the destination array.

The copy operation begins at index 0 of destination. The destination array must have at least Vector<T>::Count elements.

Show: