1 write to s_maxCacheSize
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\Regex.Cache.cs (1)
101s_maxCacheSize = value;
6 references to s_maxCacheSize
System.Text.RegularExpressions (6)
System\Text\RegularExpressions\Regex.Cache.cs (6)
91return s_maxCacheSize; 192if (s_maxCacheSize != 0 && // hot-read of s_maxCacheSize to try to avoid the cost of the dictionary lookup if the cache is disabled 226if (s_maxCacheSize == 0 || s_cacheDictionary.TryGetValue(key, out _)) 232if (s_cacheList.Count == s_maxCacheSize) 237if (s_maxCacheSize <= MaxExamineOnDrop) 291Debug.Assert(s_cacheList.Count <= s_maxCacheSize);