RegExpMatchList Capacity Property C# API
Gets or sets the total number of elements the internal data structure can hold without resizing.

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

public int Capacity { get; set; }

Field Value

The number of elements that the RegExpMatchList can contain before resizing is required.
Exceptions

ExceptionCondition
System ArgumentOutOfRangeExceptionCapacity is set to a value that is less than Count.
System OutOfMemoryExceptionThere is not enough memory available on the system.
Remarks

Capacity is the number of elements that the RegExpMatchList can store before resizing is required, while Count is the number of elements that are actually in the RegExpMatchList.

Capacity is always greater than or equal to Count. If Count exceeds Capacity while adding elements, the capacity is increased by automatically reallocating the internal array before copying the old elements and adding the new elements.

Retrieving the value of this property is an O(1) operation; setting the property is an O(n) operation, where n is the new capacity.

See Also