2 instantiations of Key
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\Regex.Cache.cs (2)
140Key key = new Key(pattern, culture.ToString(), RegexOptions.None, Regex.s_defaultMatchTimeout); 159Key key = new Key(pattern, culture.ToString(), options, matchTimeout);
11 references to Key
System.Text.RegularExpressions (11)
System\Text\RegularExpressions\Regex.Cache.cs (11)
73private static readonly ConcurrentDictionary<Key, Node> s_cacheDictionary = new ConcurrentDictionary<Key, Node>(concurrencyLevel: 1, capacity: 31); 140Key key = new Key(pattern, culture.ToString(), RegexOptions.None, Regex.s_defaultMatchTimeout); 159Key key = new Key(pattern, culture.ToString(), options, matchTimeout); 171private static Regex? Get(Key key) 215private static void Add(Key key, Regex regex) 297internal readonly struct Key : IEquatable<Key> 316obj is Key other && Equals(other); 318public bool Equals(Key other) => 331private sealed class Node(Key key, Regex regex) 334public readonly Key Key = key;