Copies the elements of the RegExpMatchList to an Array, starting at a particular Array index.
Namespace: Facilita.NativeAssembly: clrNativeWrapper (in clrNativeWrapper.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public void CopyTo( RegExpMatch[] array, int arrayIndex )
Parameters
- array
- Type: Facilita.Native RegExpMatch
The one-dimensional Array that is the destination of the elements copied from RegExpMatchList. The Array must have zero-based indexing.
- arrayIndex
- Type: System Int32
The zero-based index in array at which copying begins.
Exceptions
Exception | Condition |
---|---|
System ArgumentNullException | array is null. |
System ArgumentOutOfRangeException | arrayIndex is less than 0. |
System ArgumentException | The number of elements in the source RegExpMatchList is greater than the available space from arrayIndex to the end of the destination array. |
Remarks
The elements are copied to the Array in the same order in which the enumerator iterates through the RegExpMatchList.
This method is an O(n) operation, where n is Count.
See Also