Skip to content

GroupCollection.TryGetValue Method

Definition

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

TryGetValue(string, Group)

Gets the group of a name (see the indexer).

public bool TryGetValue(string name, out Group group)

Parameters

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

Returns

bool

true when the pattern has a group of the name.

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