1 write to _rules
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\RegexReplacement.cs (1)
91_rules = rules.AsSpan().ToArray();
7 references to _rules
System.Text.RegularExpressions (7)
System\Text\RegularExpressions\RegexReplacement.cs (7)
128foreach (int rule in _rules) 159for (int i = _rules.Length - 1; i >= 0; i--) 161int rule = _rules[i]; 215Debug.Assert(_rules.Length <= 1); 216Debug.Assert(_rules.Length == 0 || (_rules[0] == 0 && _strings.Length == 1)); 218return ReplaceSimpleText(regex, input, _rules.Length != 0 ? _strings[0] : "", count, startat);