Node(Key key, Regex regex)
static readonly Random s_random
static Regex GetOrAdd(string pattern)
static readonly List< Node > s_cacheList
static void Add(Key key, Regex regex)
static Regex GetOrAdd(string pattern, RegexOptions options, TimeSpan matchTimeout)
static Regex Get(Key key)
static readonly ConcurrentDictionary< Key, Node > s_cacheDictionary
static volatile Node s_lastAccessed
static int s_maxCacheSize
static void ValidateOptions(RegexOptions options)
static void ValidatePattern(string pattern)
static readonly TimeSpan s_defaultMatchTimeout
static void ValidateMatchTimeout(TimeSpan matchTimeout)
readonly RegexOptions _options
readonly TimeSpan _matchTimeout
override bool Equals([NotNullWhen(true)] object obj)
override int GetHashCode()
Key(string pattern, string culture, RegexOptions options, TimeSpan matchTimeout)