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