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