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)
55public int Count => _dictionary.Count; 66foreach (KeyValuePair<K, WeakReference<V>> pair in _dictionary) 89WeakReference<V> wrappedValue = _dictionary[key]; 100_dictionary.Remove(key); 103wrappedValue = _dictionary[key]; 118if (_dictionary.Count == _capacity) 125if (_dictionary.Count == _capacity) 127_capacity = _dictionary.Count * 2; 134_dictionary[key] = wrappedValue; 160if (!_dictionary.TryGetValue(key, out WeakReference<V> wrappedValue)) 176_dictionary.Remove(key); 189return _dictionary.Remove(key); 201foreach (KeyValuePair<K, WeakReference<V>> entry in _dictionary) 221_dictionary.Remove(entry); 235_dictionary.Clear(); 240foreach (KeyValuePair<K, WeakReference<V>> kvp in _dictionary)