Vector<T>::CopyTo Method (array<T>, Int32)
Copies the vector instance to a specified destination array starting at a specified index position.
Namespace: System.Numerics
Assembly: System.Numerics.Vectors (in System.Numerics.Vectors.dll)
| Exception | Condition |
|---|---|
| ArgumentNullException | destination is nullptr. |
| ArgumentException | The number of elements in the current instance is greater than the number of elements available from startIndex to the end of the destination array. |
| ArgumentOutOfRangeException | index is less than zero or greater than the last index in destination. |
The copy operation begins at index startIndex of destination. The destination array must have at least startIndex + Count – 1 elements.
Show: