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