Table of Contents

Class CaptureCollection

Namespace
System.Text.RegularExpressions
Assembly
System.Text.RegularExpressions.dll

Capture Collection

public class CaptureCollection : ICollection, IEnumerable
Inheritance
CaptureCollection
Implements
Inherited Members
Extension Methods

Properties

Count

Gets the number of elements contained in the ICollection.

public int Count { get; }

Property Value

int

The number of elements contained in the ICollection.

IsReadOnly

public bool IsReadOnly { get; }

Property Value

bool

IsSynchronized

Gets a value indicating whether access to the ICollection is synchronized (thread safe).

public bool IsSynchronized { get; }

Property Value

bool

true if access to the ICollection is synchronized (thread safe); otherwise, false.

this[int]

Gets a capture element at a specific position.

public Capture this[int i] { get; }

Parameters

i int

The position.

Property Value

Capture

The capture element.

SyncRoot

Gets an object that can be used to synchronize access to the ICollection.

public object SyncRoot { get; }

Property Value

object

An object that can be used to synchronize access to the ICollection.

Methods

CopyTo(Array, int)

Copies the elements of the ICollection to an Array, starting at a particular Array index.

public void CopyTo(Array array, int arrayIndex)

Parameters

array Array

The one-dimensional Array that is the destination of the elements copied from ICollection. The Array must have zero-based indexing.

arrayIndex int

GetEnumerator()

Returns an enumerator that iterates through a collection.

public IEnumerator GetEnumerator()

Returns

IEnumerator

An IEnumerator object that can be used to iterate through the collection.