Skip to content

GroupCollection.Item Property

Definition

Namespace: Corvus.Ecma262.RegularExpressions
Assembly: Corvus.Regex.Ecma262.dll

Overloads

Property Description
this[int]
this[string] Gets the group of a name. When several groups share the name (in separate alternatives), it is the one that took part, or the first of them when none did. A name the pattern does not have gives a g...

this[int]

Source: GroupCollection.cs

public Group this[int index] { get; }

Parameters

Name Type Description
index int

Returns

Group

Implements

IReadOnlyList<Group>.Item

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

this[string]

Source: GroupCollection.cs

Gets the group of a name. When several groups share the name (in separate alternatives), it is the one that took part, or the first of them when none did. A name the pattern does not have gives a group that did not take part, as .NET does.

public Group this[string name] { get; }

Parameters

Name Type Description
name string The name, or a group number as text.

Returns

Group

The group.

Implements

IReadOnlyList<Group>.Item

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests.

Open an issue