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: 1.0.0.0 (1.0.0.0)
Syntax

public RegExpMatchList(
	RegExpMatchList other
)

Parameters

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

ExceptionCondition
System ArgumentNullExceptionother is null.
Remarks

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