1 write to _stringsByHashCode
Microsoft.NET.StringTools.net35 (1)
WeakStringCache.Locking.cs (1)
18
_stringsByHashCode
= new Dictionary<int, StringWeakHandle>(_initialCapacity);
12 references to _stringsByHashCode
Microsoft.NET.StringTools.net35 (12)
WeakStringCache.cs (3)
101
foreach (KeyValuePair<int, StringWeakHandle> entry in
_stringsByHashCode
)
105
_stringsByHashCode
.Clear();
126
foreach (KeyValuePair<int, StringWeakHandle> entry in
_stringsByHashCode
)
WeakStringCache.Locking.cs (9)
37
lock (
_stringsByHashCode
)
39
if (
_stringsByHashCode
.TryGetValue(hashCode, out handle))
63
if (
_stringsByHashCode
.Count >= _scavengeThreshold)
68
_scavengeThreshold =
_stringsByHashCode
.Count * 2;
71
_stringsByHashCode
[hashCode] = handle;
86
foreach (KeyValuePair<int, StringWeakHandle> entry in
_stringsByHashCode
)
99
_stringsByHashCode
.Remove(keysToRemove[i]);
109
lock (
_stringsByHashCode
)
120
lock (
_stringsByHashCode
)