RegExpMatchList Constructor (RegExpMatchList)C# API
Initializes a new instance of the RegExpMatchList class that contains elements copied from the specified collection and that has the same initial capacity as the number of elements copied.

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

public RegExpMatchList(
	RegExpMatchList other


Type: Facilita.Native RegExpMatchList
The RegExpMatchList whose elements are copied to the new list.

System ArgumentNullExceptionother is null.

The capacity of an RegExpMatchList is the number of elements that the RegExpMatchList can hold. As elements are added to an RegExpMatchList, the capacity is automatically increased as required by reallocating the internal array.

If the size of the collection can be estimated, specifying the initial capacity eliminates the need to perform a number of resizing operations while adding elements to the RegExpMatchList.

The elements are copied onto the RegExpMatchList in the same order they are read by the IEnumerator of the RegExpMatchList.

This constructor is an O(n) operation, where n is the number of elements in other.

See Also