Skip to content

GroupCollection

Definition

Namespace: Corvus.Ecma262.RegularExpressions
Assembly: Corvus.Regex.Ecma262.dll
Source: GroupCollection.cs

The groups of a match: the whole match as group 0, then each capturing group in the order of its opening parenthesis.

public sealed class GroupCollection : IReadOnlyList<Group>, IEnumerable<Group>, IEnumerable, IReadOnlyCollection<Group>

Inheritance

Object → GroupCollection

Implements

IReadOnlyList<Group>, IEnumerable<Group>, IEnumerable, IReadOnlyCollection<Group>

Properties

Property Type Description
Count int
Item[...]

Methods

Method Description
ContainsKey(string) Whether the pattern has a group of the name.
GetEnumerator()
TryGetValue(string, Group) Gets the group of a name (see the indexer).

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