1 write to s_maxCacheSize
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\Regex.Cache.cs (1)
81s_maxCacheSize = value;
6 references to s_maxCacheSize
System.Text.RegularExpressions (6)
System\Text\RegularExpressions\Regex.Cache.cs (6)
71return s_maxCacheSize; 172if (s_maxCacheSize != 0 && // hot-read of s_maxCacheSize to try to avoid the cost of the dictionary lookup if the cache is disabled 206if (s_maxCacheSize == 0 || s_cacheDictionary.TryGetValue(key, out _)) 212if (s_cacheList.Count == s_maxCacheSize) 217if (s_maxCacheSize <= MaxExamineOnDrop) 271Debug.Assert(s_cacheList.Count <= s_maxCacheSize);