1 write to _dictionary
Microsoft.Build (1)
Collections\WeakValueDictionary.cs (1)
46
_dictionary
= new Dictionary<K, WeakReference<V>>(_capacity, keyComparer);
16 references to _dictionary
Microsoft.Build (16)
Collections\WeakValueDictionary.cs (16)
54
public int Count =>
_dictionary
.Count;
65
foreach (KeyValuePair<K, WeakReference<V>> pair in
_dictionary
)
88
WeakReference<V> wrappedValue =
_dictionary
[key];
99
_dictionary
.Remove(key);
102
wrappedValue =
_dictionary
[key];
117
if (
_dictionary
.Count == _capacity)
124
if (
_dictionary
.Count == _capacity)
126
_capacity =
_dictionary
.Count * 2;
133
_dictionary
[key] = wrappedValue;
159
if (!
_dictionary
.TryGetValue(key, out WeakReference<V> wrappedValue))
175
_dictionary
.Remove(key);
188
return
_dictionary
.Remove(key);
200
foreach (KeyValuePair<K, WeakReference<V>> entry in
_dictionary
)
220
_dictionary
.Remove(entry);
234
_dictionary
.Clear();
239
foreach (KeyValuePair<K, WeakReference<V>> kvp in
_dictionary
)