NAnt SDK Documentation - v0.92 |

# ModuleCollection.CopyTo Method

Copies the items of the collection to an Array, starting at a particular index.

[Visual Basic]
NotOverridable Public Sub CopyTo( _
ByVal array As Array, _
ByVal index As Integer _
) _
Implements ICollection.CopyTo
[C#]
public void CopyTo(
Array array,
int index
);

#### Parameters

array
  The one-dimensional Array that is the destination of the items copied from the collection. The Array must have zero-based indexing.
index
  The zero-based index in array at which copying begins.

#### Implements

ICollection.CopyTo

#### See Also

ModuleCollection Class | NAnt.DotNet.Types Namespace