1 type derived from Group
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\Match.cs (1)
35
public class Match :
Group
1 instantiation of Group
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\GroupCollection.cs (1)
83
_groups[i] = new
Group
(_match.Text, _match._matches[i + 1], _match._matchcount[i + 1], groupname);
68 references to 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)
612
Group
transformGroup = match.Groups["TRANSFORM"];
Microsoft.Build.Tasks.Core (1)
AssemblyDependency\AssemblyFoldersExResolver.cs (1)
134
Group
conditions = match.Groups["CONDITIONS"];
Microsoft.CodeAnalysis.Features (1)
EmbeddedLanguages\EmbeddedLanguageCommentDetector.cs (1)
45
var
optionGroup = match.Groups["option"];
Microsoft.CodeAnalysis.Features.Test.Utilities (2)
EditAndContinue\SourceMarkers.cs (2)
100
var
span = matches[i].Groups["TrackingStatement"];
121
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.DotNet.VersionTools (1)
Dependencies\FileRegexUpdater.cs (1)
76
Group
group = m.Groups[groupName];
Microsoft.DotNet.VersionTools.Tasks (1)
UpdateToRemoteDependencies.cs (1)
111
Group
g = match.Groups[valueGroup];
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 (55)
System\Text\RegularExpressions\CaptureCollection.cs (2)
18
private readonly
Group
_group;
22
internal CaptureCollection(
Group
group)
System\Text\RegularExpressions\Group.cs (3)
13
internal static readonly
Group
s_emptyGroup = new Group(string.Empty, [], 0, string.Empty);
42
public static
Group
Synchronized(
Group
inner)
System\Text\RegularExpressions\GroupCollection.cs (48)
16
[DebuggerTypeProxy(typeof(CollectionDebuggerProxy<
Group
>))]
17
public class GroupCollection : IList<
Group
>, IReadOnlyList<
Group
>, IList, IReadOnlyDictionary<string,
Group
>
23
private
Group
[]? _groups;
38
public
Group
this[int groupnum] => GetGroup(groupnum);
40
public
Group
this[string groupname] => _match._regex is null ?
41
Group
.s_emptyGroup :
47
IEnumerator<
Group
> IEnumerable<
Group
>.GetEnumerator() => new Enumerator(this);
49
private
Group
GetGroup(int groupnum)
63
return
Group
.s_emptyGroup;
69
private
Group
GetGroupImpl(int groupnum)
79
_groups = new
Group
[_match._matchcount.Length - 1];
107
public void CopyTo(
Group
[] array, int arrayIndex)
128
int IList<
Group
>.IndexOf(
Group
item)
132
if (EqualityComparer<
Group
>.Default.Equals(this[i], item))
141
void IList<
Group
>.Insert(int index,
Group
item) =>
144
void IList<
Group
>.RemoveAt(int index) =>
147
Group
IList<
Group
>.this[int index]
153
void ICollection<
Group
>.Add(
Group
item) =>
156
void ICollection<
Group
>.Clear() =>
159
bool ICollection<
Group
>.Contains(
Group
item) =>
160
((IList<
Group
>)this).IndexOf(item) >= 0;
162
bool ICollection<
Group
>.Remove(
Group
item) =>
172
value is
Group
other && ((ICollection<
Group
>)this).Contains(other);
175
value is
Group
other ? ((IList<
Group
>)this).IndexOf(other) : -1;
194
IEnumerator<KeyValuePair<string,
Group
>> IEnumerable<KeyValuePair<string,
Group
>>.GetEnumerator() =>
197
public bool TryGetValue(string key, [NotNullWhen(true)] out
Group
? value)
199
Group
group = this[key];
200
if (group ==
Group
.s_emptyGroup)
223
public IEnumerable<
Group
> Values
234
private sealed class Enumerator : IEnumerator<
Group
>, IEnumerator<KeyValuePair<string,
Group
>>
260
public
Group
Current
273
KeyValuePair<string,
Group
> IEnumerator<KeyValuePair<string,
Group
>>.Current
282
Group
value = _collection[_index];
283
return new KeyValuePair<string,
Group
>(value.Name, value);
System\Text\RegularExpressions\Match.cs (2)
85
/// The main difference between the public <see cref="
Group
.Success"/> property and this one, is that <see cref="
Group
.Success"/> requires