Method CopyTo
- Namespace
- MaaFramework.Binding.Buffers
- Assembly
- MaaFramework.Binding.dll
CopyTo(T[], int)
Copies the elements of the System.Collections.Generic.ICollection`1 to an System.Array, starting at a particular System.Array index.
public void CopyTo(T[] array, int arrayIndex)
Parameters
array
T[]-
The one-dimensional System.Array that is the destination of the elements copied from System.Collections.Generic.ICollection`1. The System.Array must have zero-based indexing.
arrayIndex
int-
The zero-based index in
array
at which copying begins.
Exceptions
- ArgumentNullException
-
array
is null. - ArgumentOutOfRangeException
-
arrayIndex
is less than 0. - ArgumentException
-
The number of elements in the source System.Collections.Generic.ICollection`1 is greater than the available space from
arrayIndex
to the end of the destinationarray
.