Initializes a new instance of the RegExpMatchList class that contains elements copied from the specified ICollection 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
Parameters
- c
- Type: System.Collections ICollection
The ICollection whose elements are copied to the new list.
Exceptions
Exception | Condition |
---|---|
System ArgumentNullException | c 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 ICollection.
This constructor is an O(n) operation, where n is the number of elements in c.
See Also