2 instantiations of Key
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\Regex.Cache.cs (2)
120Key key = new Key(pattern, culture.ToString(), RegexOptions.None, Regex.s_defaultMatchTimeout); 139Key key = new Key(pattern, culture.ToString(), options, matchTimeout);
11 references to Key
System.Text.RegularExpressions (11)
System\Text\RegularExpressions\Regex.Cache.cs (11)
53private static readonly ConcurrentDictionary<Key, Node> s_cacheDictionary = new ConcurrentDictionary<Key, Node>(concurrencyLevel: 1, capacity: 31); 120Key key = new Key(pattern, culture.ToString(), RegexOptions.None, Regex.s_defaultMatchTimeout); 139Key key = new Key(pattern, culture.ToString(), options, matchTimeout); 151private static Regex? Get(Key key) 195private static void Add(Key key, Regex regex) 277internal readonly struct Key : IEquatable<Key> 296obj is Key other && Equals(other); 298public bool Equals(Key other) => 311private sealed class Node(Key key, Regex regex) 314public readonly Key Key = key;