1 type derived from Group
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\Match.cs (1)
42public class Match : Group
2 instantiations of Group
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\Group.cs (1)
21internal 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)
33static string? GetGroupValueOrDefault(Group 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)
610Group transformGroup = match.Groups["TRANSFORM"];
Microsoft.CodeAnalysis.Features (1)
EmbeddedLanguages\EmbeddedLanguageCommentDetector.cs (1)
45var optionGroup = match.Groups["option"];
Microsoft.CodeAnalysis.Features.Test.Utilities (2)
EditAndContinue\SourceMarkers.cs (2)
104var span = matches[i].Groups["TrackingStatement"]; 125var 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.Extensions.AI.Evaluation.Quality (1)
EvaluationMetricExtensions.cs (1)
106if (!match.Success || match.Groups["value"] is not Group valueGroup || !valueGroup.Success)
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 (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 46private readonly Group _group; 50internal 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"/> 21internal 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> 82public 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>))] 40public class GroupCollection : IList<Group>, IReadOnlyList<Group>, IList, IReadOnlyDictionary<string, Group> 46private 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 92public 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 111public Group this[string groupname] => _match._regex is null ? 112Group.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 128IEnumerator<Group> IEnumerable<Group>.GetEnumerator() => new Enumerator(this); 130private Group GetGroup(int groupnum) 144return Group.s_emptyGroup; 150private 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 237public void CopyTo(Group[] array, int arrayIndex) 258int IList<Group>.IndexOf(Group item) 262if (EqualityComparer<Group>.Default.Equals(this[i], item)) 271void IList<Group>.Insert(int index, Group item) => 274void IList<Group>.RemoveAt(int index) => 277Group IList<Group>.this[int index] 283void ICollection<Group>.Add(Group item) => 286void ICollection<Group>.Clear() => 289bool ICollection<Group>.Contains(Group item) => 290((IList<Group>)this).IndexOf(item) >= 0; 292bool ICollection<Group>.Remove(Group item) => 302value is Group other && ((ICollection<Group>)this).Contains(other); 305value is Group other ? ((IList<Group>)this).IndexOf(other) : -1; 324IEnumerator<KeyValuePair<string, Group>> IEnumerable<KeyValuePair<string, Group>>.GetEnumerator() => 340public bool TryGetValue(string key, [NotNullWhen(true)] out Group? value) 342Group group = this[key]; 343if (group == Group.s_emptyGroup) 379public IEnumerable<Group> Values 390private sealed class Enumerator : IEnumerator<Group>, IEnumerator<KeyValuePair<string, Group>> 416public Group Current 429KeyValuePair<string, Group> IEnumerator<KeyValuePair<string, Group>>.Current 438Group value = _collection[_index]; 439return 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