2 writes to caps
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\Regex.cs (2)
133caps = tree.CaptureNumberSparseMapping; 192caps = value as Hashtable ?? new Hashtable(value);
10 references to caps
System.Text.RegularExpressions (10)
System\Text\RegularExpressions\Match.cs (1)
122RegexReplacement repl = RegexReplacement.GetOrCreate(regex.RegexReplacementWeakReference, replacement, regex.caps!, regex.capsize, regex.capnames!, regex.roptions);
System\Text\RegularExpressions\Regex.cs (5)
184get => caps; 344if (caps is null) 355result = new int[caps.Count]; 356IDictionaryEnumerator de = caps.GetEnumerator(); 372return RegexParser.GroupNameFromNumber(caps, capslist, capsize, i);
System\Text\RegularExpressions\Regex.Replace.cs (1)
82RegexReplacement.GetOrCreate(RegexReplacementWeakReference, replacement, caps!, capsize, capnames!, roptions).
System\Text\RegularExpressions\RegexAssemblyCompiler.cs (1)
146GenerateCreateHashtable(RegexField(nameof(Regex.caps)), tree.CaptureNumberSparseMapping);
System\Text\RegularExpressions\RegexRunner.cs (2)
291runmatch = runregex!.caps is null ? 293new MatchSparse(runregex, runregex.caps, runregex.capsize, runtext, text.Length);