RegExpMatchList Insert Method C# API
Inserts an element into the RegExpMatchList at the specified index.

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

public void Insert(
	int index,
	RegExpMatch x
)

Parameters

index
Type: System Int32
The zero-based index at which x should be inserted.
x
Type: Facilita.Native RegExpMatch
The object to insert. The value can be null for reference types.
Exceptions

ExceptionCondition
System ArgumentOutOfRangeExceptionindex is less than 0.
-or-
index is greater than Count.
Remarks

If Count already equals Capacity, the capacity of the RegExpMatchList is increased by automatically reallocating the internal array, and the existing elements are copied to the new array before the new element is added.

If index is equal to Count, x is added to the end of RegExpMatchList.

This method is an O(n) operation, where n is Count.

See Also