copy_to method

copy_to

Copies the elements of the System.Collections.Generic.ICollection`1 to an System.Array, starting at a particular System.Array index.

def copy_to(self, array, array_index):
    ...
ParameterTypeDescription
arrayList[IBehavior]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.
array_indexintThe zero-based index in array at which copying begins.

Exceptions

ExceptionDescription
RuntimeError(Proxy error(ArgumentNullException))array is None.
RuntimeError(Proxy error(ArgumentOutOfRangeException))array_index is less than 0.
RuntimeError(Proxy error(ArgumentException))The number of elements in the source **System.Collections.Generic.ICollection1** is greater than the available space from array_indexto the end of the destinationarray`.

See Also