6 writes to _backing
Microsoft.Build (6)
Collections\CopyOnWritePropertyDictionary.cs (6)
54_backing = NameComparerDictionaryPrototype; 62_backing = that._backing; 133_backing = _backing.Clear(); 329return ImmutableInterlocked.TryRemove(ref _backing, name, out _); 341_backing = _backing.SetItem(projectProperty.Key, projectProperty); 350_backing = _backing.SetItems(Items());
20 references to _backing
Microsoft.Build (20)
Collections\CopyOnWritePropertyDictionary.cs (20)
62_backing = that._backing; 68ICollection<string> IDictionary<string, T>.Keys => ((IDictionary<string, T>)_backing).Keys; 73ICollection<T> IDictionary<string, T>.Values => ((IDictionary<string, T>)_backing).Values; 83public int Count => _backing.Count; 100_backing.TryGetValue(name, out T projectProperty); 116public bool Contains(string name) => _backing.ContainsKey(name); 120if (_backing.TryGetValue(name, out T value)) 133_backing = _backing.Clear(); 140public IEnumerator<T> GetEnumerator() => _backing.Values.GetEnumerator(); 163ImmutableDictionary<string, T> thisBacking = _backing; 164ImmutableDictionary<string, T> thatBacking = other._backing; 208ImmutableDictionary<string, T> thisBacking = _backing; 216if (ReferenceEquals(thisBacking, otherCopyOnWritePropertyDictionary._backing)) 221otherDict = otherCopyOnWritePropertyDictionary._backing; 258bool IDictionary<string, T>.ContainsKey(string key) => _backing.ContainsKey(key); 263bool IDictionary<string, T>.TryGetValue(string key, out T value) => _backing.TryGetValue(key, out value); 282if (_backing.TryGetValue(item.Key, out T value)) 316return _backing.GetEnumerator(); 341_backing = _backing.SetItem(projectProperty.Key, projectProperty); 350_backing = _backing.SetItems(Items());