2 writes to capnames
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\Regex.cs (2)
131capnames = tree.CaptureNameToNumberMapping; 207capnames = value as Hashtable ?? new Hashtable(value);
6 references to capnames
System.Text.RegularExpressions (6)
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 (3)
199get => capnames; 385if (capnames != null) 388return capnames.TryGetValue(name, out int result) ? result : -1;
System\Text\RegularExpressions\Regex.Replace.cs (1)
82RegexReplacement.GetOrCreate(RegexReplacementWeakReference, replacement, caps!, capsize, capnames!, roptions).
System\Text\RegularExpressions\RegexAssemblyCompiler.cs (1)
151GenerateCreateHashtable(RegexField(nameof(Regex.capnames)), tree.CaptureNameToNumberMapping);