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.NativeAssembly: 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
Exception | Condition |
---|---|
System ArgumentNullException | other is null. |
Remarks
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