System.Text.RegularExpressions.GroupCollection.CopyTo Method

Copies all the elements of the collection to the given array beginning at the given index.

Syntax

public void CopyTo (Array array, int arrayIndex)

Parameters

array
The array the collection is to be copied into.
arrayIndex
The position in the destination array where the copying is to begin.

Remarks

Because the entire collection is copied into the array starting at the given index, the destination array must be at least as large as the collection.

Note:

This member is not present in the net_portable. If you are developing applications that target the net_portable, use the GroupCollection.System#Collections#ICollection#CopyTo(Array, int) method instead.

Requirements

Namespace: System.Text.RegularExpressions
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0