다음을 통해 공유


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 (
         Array array,
         int index
)

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, 4.1, and 4.2.

See Also

Reference

Array Class
Array Members
System Namespace