Array.CopyTo Method
Copies all of the objects from a one-dimensional array (source array) to another one-dimensional array (destination array), starting at the specified index number in the destination array. You specify this index number as a 32-bit integer.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
public virtual void CopyTo (
Arrayarray,
intindex
)
Parameters
- array
The one-dimensional destination array to which you want to copy the objects. - index
A 32-bit integer that represents the index number in the destination array at which you want the copying to begin.
Remarks
This method supports the System.Collections.ICollection interface. If implementing this interface is not explicitly required, use the Copy method instead of this method to avoid an extra indirection.
Version Information
Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.