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)
101foreach (KeyValuePair<int, StringWeakHandle> entry in _stringsByHashCode) 105_stringsByHashCode.Clear(); 126foreach (KeyValuePair<int, StringWeakHandle> entry in _stringsByHashCode)
WeakStringCache.Locking.cs (9)
37lock (_stringsByHashCode) 39if (_stringsByHashCode.TryGetValue(hashCode, out handle)) 63if (_stringsByHashCode.Count >= _scavengeThreshold) 68_scavengeThreshold = _stringsByHashCode.Count * 2; 71_stringsByHashCode[hashCode] = handle; 86foreach (KeyValuePair<int, StringWeakHandle> entry in _stringsByHashCode) 99_stringsByHashCode.Remove(keysToRemove[i]); 109lock (_stringsByHashCode) 120lock (_stringsByHashCode)