Table of Contents

Class GroupCollection

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

Group Collection class

public class GroupCollection : ICollection, IEnumerable
Inheritance
GroupCollection
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 the group element at a specific position.

public Group this[int groupnum] { get; }

Parameters

groupnum int

The position

Property Value

Group

The group element

this[string]

Gets the group element at a specific position.

public Group this[string groupname] { get; }

Parameters

groupname string

The position

Property Value

Group

The group 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.