10 references to s_cacheDictionary
System.Text.RegularExpressions (10)
System\Text\RegularExpressions\Regex.Cache.cs (10)
82
private static object SyncObj =>
s_cacheDictionary
;
106
s_cacheDictionary
.Clear();
120
s_cacheDictionary
.TryRemove(s_cacheList[i].Key, out _);
125
Debug.Assert(
s_cacheDictionary
.Count == value);
193
s_cacheDictionary
.TryGetValue(key, out Node? node))
219
Debug.Assert(s_cacheList.Count ==
s_cacheDictionary
.Count);
226
if (s_maxCacheSize == 0 ||
s_cacheDictionary
.TryGetValue(key, out _))
274
s_cacheDictionary
.TryRemove(s_cacheList[minListIndex].Key, out _);
289
s_cacheDictionary
.TryAdd(key, node);
292
Debug.Assert(s_cacheList.Count ==
s_cacheDictionary
.Count);