1 instantiation of StringWeakHandle
Microsoft.NET.StringTools (1)
WeakStringCache.Concurrent.cs (1)
100handle = new StringWeakHandle();
8 references to StringWeakHandle
Microsoft.NET.StringTools (8)
WeakStringCache.Concurrent.cs (6)
18private readonly ConcurrentDictionary<int, StringWeakHandle> _weakHandlesByHashCode; 24_weakHandlesByHashCode = new ConcurrentDictionary<int, StringWeakHandle>(Environment.ProcessorCount, _initialCapacity); 68ConcurrentDictionary<int, StringWeakHandle> weakHandlesByHashCode = _weakHandlesByHashCode; 69if (weakHandlesByHashCode.TryGetValue(hashCode, out StringWeakHandle? handle)) 146foreach (KeyValuePair<int, StringWeakHandle> entry in _weakHandlesByHashCode) 149if (!entry.Value.IsUsed && _weakHandlesByHashCode.TryRemove(entry.Key, out StringWeakHandle? removedHandle))
WeakStringCache.cs (2)
111foreach (KeyValuePair<int, StringWeakHandle> entry in _weakHandlesByHashCode) 132foreach (KeyValuePair<int, StringWeakHandle> entry in _weakHandlesByHashCode)