RegExpMatchList CopyTo Method (Int32,  RegExpMatch , Int32, Int32)C# API
Copies a range of elements from the RegExpMatchList to a compatible one-dimensional array, starting at the specified index of the target array.

Namespace: Facilita.Native
Assembly: clrNativeWrapper (in clrNativeWrapper.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public void CopyTo(
	int index,
	RegExpMatch[] array,
	int arrayIndex,
	int count
)

Parameters

index
Type: System Int32
The zero-based index in the source RegExpMatchList at which copying begins.
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.
count
Type: System Int32
The number of elements to copy.
Exceptions

ExceptionCondition
System ArgumentNullExceptionarray is null.
System ArgumentOutOfRangeExceptionindex is less than 0.
-or-
arrayIndex is less than 0.
-or-
count is less than 0.
System ArgumentExceptionindex is equal to or greater than the Count of the source RegExpMatchList.
-or-
The number of elements from index to the end of the source RegExpMatchList is greater than the available space from arrayIndex to the end of the destination array.
Remarks

This method uses Copy(Array, Int32, Array, Int32, Int32) to copy the elements.

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