1 instantiation of StringWeakHandle
Microsoft.NET.StringTools (1)
WeakStringCache.Concurrent.cs (1)
63
handle = new
StringWeakHandle
();
7 references to StringWeakHandle
Microsoft.NET.StringTools (7)
WeakStringCache.Concurrent.cs (5)
16
private readonly ConcurrentDictionary<int,
StringWeakHandle
> _stringsByHashCode;
20
_stringsByHashCode = new ConcurrentDictionary<int,
StringWeakHandle
>(Environment.ProcessorCount, _initialCapacity);
35
StringWeakHandle
? handle;
98
foreach (KeyValuePair<int,
StringWeakHandle
> entry in _stringsByHashCode)
101
if (!entry.Value.IsUsed && _stringsByHashCode.TryRemove(entry.Key, out
StringWeakHandle
? removedHandle))
WeakStringCache.cs (2)
101
foreach (KeyValuePair<int,
StringWeakHandle
> entry in _stringsByHashCode)
126
foreach (KeyValuePair<int,
StringWeakHandle
> entry in _stringsByHashCode)