1 type derived from Group
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\Match.cs (1)
42
public class Match :
Group
2 instantiations of Group
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\Group.cs (1)
21
internal static readonly Group s_emptyGroup = new
Group
(string.Empty, [], 0, string.Empty);
System\Text\RegularExpressions\GroupCollection.cs (1)
164
_groups[i] = new
Group
(_match.Text, _match._matches[i + 1], _match._matchcount[i + 1], groupname);
98 references to Group
Aspire.Hosting (1)
Utils\ContainerReferenceParser.cs (1)
33
static string? GetGroupValueOrDefault(
Group
group)
Microsoft.AspNetCore.App.Analyzers (1)
RouteEmbeddedLanguage\Infrastructure\EmbeddedLanguageCommentDetector.cs (1)
47
var
optionGroup = match.Groups["option"];
Microsoft.Build.Engine.UnitTests (1)
Evaluation\ExpressionShredder_Tests.cs (1)
610
Group
transformGroup = match.Groups["TRANSFORM"];
Microsoft.CodeAnalysis.Features (1)
EmbeddedLanguages\EmbeddedLanguageCommentDetector.cs (1)
45
var
optionGroup = match.Groups["option"];
Microsoft.CodeAnalysis.Features.Test.Utilities (2)
EditAndContinue\SourceMarkers.cs (2)
104
var
span = matches[i].Groups["TrackingStatement"];
125
var
exceptionRegion = matches[i].Groups["ExceptionRegion"];
Microsoft.CodeAnalysis.Test.Utilities (2)
MarkedSource\SourceWithMarkedNodes.cs (2)
56
var
tagName = match.Groups["TagName"];
57
var
markedSyntax = match.Groups["MarkedSyntax"];
Microsoft.Extensions.AI.Evaluation.Quality (1)
EvaluationMetricExtensions.cs (1)
106
if (!match.Success || match.Groups["value"] is not
Group
valueGroup || !valueGroup.Success)
Microsoft.ML.Data (1)
Commands\EvaluateCommand.cs (1)
83
var
s = match.Groups[_groupName];
netstandard (1)
netstandard.cs (1)
2047
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Text.RegularExpressions.
Group
))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
902
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Text.RegularExpressions.
Group
))]
System.Text.RegularExpressions (86)
System\Text\RegularExpressions\Capture.cs (3)
11
/// <see cref="
Group
.Captures"/> property. However, the <c>Match.Captures</c> property provides
16
/// If you do not apply a quantifier to a capturing group, the <see cref="
Group
.Captures"/>
18
/// that provides information about the same capture as the <see cref="
Group
"/> object. If you do
System\Text\RegularExpressions\CaptureCollection.cs (5)
21
/// The <see cref="
Group
.Captures" /> property. Each member of the collection represents a substring
24
/// the same captured substring as the <see cref="
Group
" /> object. If a quantifier is applied to a
26
/// for each captured substring, and the <see cref="
Group
" /> object provides information only about
46
private readonly
Group
_group;
50
internal CaptureCollection(
Group
group)
System\Text\RegularExpressions\Group.cs (9)
14
/// directly from the <c>Value</c> and <c>Index</c> properties. (That is, the <see cref="
Group
"/>
21
internal static readonly
Group
s_emptyGroup = new Group(string.Empty, [], 0, string.Empty);
61
/// information about the same substring as the <see cref="
Group
"/> object.
66
/// expression. In this case, the <see cref="
Group
"/> object contains information about the last
74
/// Returns a <see cref="
Group
"/> object equivalent to the one supplied that is safe to share
77
/// <param name="inner">The input <see cref="
Group
"/> object.</param>
78
/// <returns>A regular expression <see cref="
Group
"/> object.</returns>
82
public static
Group
Synchronized(
Group
inner)
System\Text\RegularExpressions\GroupCollection.cs (60)
18
/// more <see cref="
Group
" /> objects that provide information about captured groups in a regular
23
/// The collection contains one or more <see cref="
Group
" /> objects. If the match is successful, the
24
/// first element in the collection contains the <see cref="
Group
" /> object that corresponds to the
28
/// contains a single <see cref="
Group
" /> object whose <see cref="
Group
.Success" /> property is
39
[DebuggerTypeProxy(typeof(CollectionDebuggerProxy<
Group
>))]
40
public class GroupCollection : IList<
Group
>, IReadOnlyList<
Group
>, IList, IReadOnlyDictionary<string,
Group
>
46
private
Group
[]? _groups;
87
/// the input string, the method returns a <see cref="
Group
" /> object whose
88
/// <see cref="
Group
.Success" /> property is <see langword="false" /> and whose
92
public
Group
this[int groupnum] => GetGroup(groupnum);
106
/// the input string, the method returns a <see cref="
Group
" /> object whose
107
/// <see cref="
Group
.Success" /> property is <see langword="false" /> and whose
111
public
Group
this[string groupname] => _match._regex is null ?
112
Group
.s_emptyGroup :
117
/// An enumerator that contains all <see cref="
Group
" /> objects in the
122
/// you iterate through the <see cref="
Group
" /> objects in the collection, you should use the
128
IEnumerator<
Group
> IEnumerable<
Group
>.GetEnumerator() => new Enumerator(this);
130
private
Group
GetGroup(int groupnum)
144
return
Group
.s_emptyGroup;
150
private
Group
GetGroupImpl(int groupnum)
160
_groups = new
Group
[_match._matchcount.Length - 1];
215
/// Copies the elements of the group collection to a <see cref="
Group
" /> array, starting at a
237
public void CopyTo(
Group
[] array, int arrayIndex)
258
int IList<
Group
>.IndexOf(
Group
item)
262
if (EqualityComparer<
Group
>.Default.Equals(this[i], item))
271
void IList<
Group
>.Insert(int index,
Group
item) =>
274
void IList<
Group
>.RemoveAt(int index) =>
277
Group
IList<
Group
>.this[int index]
283
void ICollection<
Group
>.Add(
Group
item) =>
286
void ICollection<
Group
>.Clear() =>
289
bool ICollection<
Group
>.Contains(
Group
item) =>
290
((IList<
Group
>)this).IndexOf(item) >= 0;
292
bool ICollection<
Group
>.Remove(
Group
item) =>
302
value is
Group
other && ((ICollection<
Group
>)this).Contains(other);
305
value is
Group
other ? ((IList<
Group
>)this).IndexOf(other) : -1;
324
IEnumerator<KeyValuePair<string,
Group
>> IEnumerable<KeyValuePair<string,
Group
>>.GetEnumerator() =>
340
public bool TryGetValue(string key, [NotNullWhen(true)] out
Group
? value)
342
Group
group = this[key];
343
if (group ==
Group
.s_emptyGroup)
379
public IEnumerable<
Group
> Values
390
private sealed class Enumerator : IEnumerator<
Group
>, IEnumerator<KeyValuePair<string,
Group
>>
416
public
Group
Current
429
KeyValuePair<string,
Group
> IEnumerator<KeyValuePair<string,
Group
>>.Current
438
Group
value = _collection[_index];
439
return new KeyValuePair<string,
Group
>(value.Name, value);
System\Text\RegularExpressions\Match.cs (5)
27
/// <see cref="
Group
.Success"/> property to determine whether the match was successful.
73
/// <see cref="
Group
.Success"/> property.
97
/// The main difference between the public <see cref="
Group
.Success"/> property and this one, is that <see cref="
Group
.Success"/> requires
122
/// particular input string, the single <see cref="
Group
"/> object in the collection has its
System\Text\RegularExpressions\Regex.Match.cs (4)
297
/// checking the returned <see cref="System.Text.RegularExpressions.Match"/> object's <see cref="
Group
.Success"/> property. If a match
334
/// checking the returned <see cref="System.Text.RegularExpressions.Match"/> object's <see cref="
Group
.Success"/> property. You can
372
/// checking the returned <see cref="System.Text.RegularExpressions.Match"/> object's <see cref="
Group
.Success"/> property. You can
403
/// checking the returned <see cref="System.Text.RegularExpressions.Match"/> object's <see cref="
Group
.Success"/> property. If a match