1 write to _dictionary
Microsoft.Build (1)
Collections\WeakValueDictionary.cs (1)
47
_dictionary
= new Dictionary<K, WeakReference<V>>(_capacity, keyComparer);
16 references to _dictionary
Microsoft.Build (16)
Collections\WeakValueDictionary.cs (16)
55
public int Count =>
_dictionary
.Count;
66
foreach (KeyValuePair<K, WeakReference<V>> pair in
_dictionary
)
89
WeakReference<V> wrappedValue =
_dictionary
[key];
100
_dictionary
.Remove(key);
103
wrappedValue =
_dictionary
[key];
118
if (
_dictionary
.Count == _capacity)
125
if (
_dictionary
.Count == _capacity)
127
_capacity =
_dictionary
.Count * 2;
134
_dictionary
[key] = wrappedValue;
160
if (!
_dictionary
.TryGetValue(key, out WeakReference<V> wrappedValue))
176
_dictionary
.Remove(key);
189
return
_dictionary
.Remove(key);
201
foreach (KeyValuePair<K, WeakReference<V>> entry in
_dictionary
)
221
_dictionary
.Remove(entry);
235
_dictionary
.Clear();
240
foreach (KeyValuePair<K, WeakReference<V>> kvp in
_dictionary
)