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