Skip to main content

GroupCollection Class

NuGet: GHIElectronics.TinyCLR.RegularExpressions
Assembly: GHIElectronics.TinyCLR.RegularExpressions
Namespace: System.Text.RegularExpressions

Represents the set of capturing groups matched by a regular expression.

public class GroupCollection : ICollection, IEnumerable

Properties

Count

public int Count { get; }

The number of groups in the collection.

IsReadOnly

public bool IsReadOnly { get; }

Gets a value indicating whether the collection is read-only.

IsSynchronized

public bool IsSynchronized { get; }

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

groupnum]

public Group this[int groupnum] { get; }

Gets the group at the specified index in the collection.

groupname]

public Group this[string groupname] { get; }

Gets the group with the specified name.

SyncRoot

public object SyncRoot { get; }

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

Methods

CopyTo(Array array, int arrayIndex)

public void CopyTo(Array array, int arrayIndex)

Copies all the elements of the collection to the given array starting at the given index.

GetEnumerator()

public IEnumerator GetEnumerator()

Returns an enumerator that iterates through the collection.

Returns IEnumerator