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