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)
54public int Count => _dictionary.Count; 65foreach (KeyValuePair<K, WeakReference<V>> pair in _dictionary) 88WeakReference<V> wrappedValue = _dictionary[key]; 99_dictionary.Remove(key); 102wrappedValue = _dictionary[key]; 117if (_dictionary.Count == _capacity) 124if (_dictionary.Count == _capacity) 126_capacity = _dictionary.Count * 2; 133_dictionary[key] = wrappedValue; 159if (!_dictionary.TryGetValue(key, out WeakReference<V> wrappedValue)) 175_dictionary.Remove(key); 188return _dictionary.Remove(key); 200foreach (KeyValuePair<K, WeakReference<V>> entry in _dictionary) 220_dictionary.Remove(entry); 234_dictionary.Clear(); 239foreach (KeyValuePair<K, WeakReference<V>> kvp in _dictionary)