10 references to s_cacheDictionary
System.Text.RegularExpressions (10)
System\Text\RegularExpressions\Regex.Cache.cs (10)
62
private static object SyncObj =>
s_cacheDictionary
;
86
s_cacheDictionary
.Clear();
100
s_cacheDictionary
.TryRemove(s_cacheList[i].Key, out _);
105
Debug.Assert(
s_cacheDictionary
.Count == value);
173
s_cacheDictionary
.TryGetValue(key, out Node? node))
199
Debug.Assert(s_cacheList.Count ==
s_cacheDictionary
.Count);
206
if (s_maxCacheSize == 0 ||
s_cacheDictionary
.TryGetValue(key, out _))
254
s_cacheDictionary
.TryRemove(s_cacheList[minListIndex].Key, out _);
269
s_cacheDictionary
.TryAdd(key, node);
272
Debug.Assert(s_cacheList.Count ==
s_cacheDictionary
.Count);