ICollection.CopyTo Method
When implemented by a class, this method copies objects from an ICollection collection to a specified array (destination array), starting at a specified index number in the destination array.
Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)
Syntax
public void CopyTo (
Array array,
int index
)
Parameters
- array
The one-dimensional array to which you want to copy objects from the collection. The destination array must have zero-based indexing. - index
The zero-based index number at which you want copying to begin in the array.
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
ICollection Interface
ICollection Members
System.Collections Namespace