1 instantiation of StringWeakHandle
Microsoft.NET.StringTools (1)
WeakStringCache.Concurrent.cs (1)
82handle = new StringWeakHandle();
10 references to StringWeakHandle
Microsoft.NET.StringTools (10)
WeakStringCache.Concurrent.cs (8)
16private readonly ConcurrentDictionary<int, StringWeakHandle> _stringsByHashCode; 17private readonly ConcurrentDictionary<int, StringWeakHandle> _weakHandlesByHashCode; 22_stringsByHashCode = new ConcurrentDictionary<int, StringWeakHandle>(Environment.ProcessorCount, _initialCapacity); 23_weakHandlesByHashCode = new ConcurrentDictionary<int, StringWeakHandle>(Environment.ProcessorCount, _initialCapacity); 38StringWeakHandle? handle; 44ConcurrentDictionary<int, StringWeakHandle> stringsByHashCode = usingWeakHandle ? _weakHandlesByHashCode : _stringsByHashCode; 130foreach (KeyValuePair<int, StringWeakHandle> entry in _weakHandlesByHashCode) 133if (!entry.Value.IsUsed && _weakHandlesByHashCode.TryRemove(entry.Key, out StringWeakHandle? removedHandle))
WeakStringCache.cs (2)
138foreach (KeyValuePair<int, StringWeakHandle> entry in _weakHandlesByHashCode) 159foreach (KeyValuePair<int, StringWeakHandle> entry in _weakHandlesByHashCode)