13 writes to _backing
MSBuildTaskHost (13)
CopyOnWriteDictionary.cs (13)
59
_backing
= ImmutableDictionary<string, V>.Empty;
67
_backing
= GetInitialDictionary(keyComparer);
82
_backing
= b.AddRange((KeyValuePair<string, V>[])v);
103
_backing
= that._backing;
108
_backing
= dictionary.ToImmutableDictionary();
172
private set =>
_backing
= _backing.WithComparers(keyComparer: value);
184
_backing
= _backing.SetItem(key, value);
208
_backing
= _backing.SetItem(key, value);
216
_backing
= _backing.SetItems(items);
238
_backing
= _backing.Remove(key);
258
_backing
= _backing.SetItem(item.Key, item.Value);
266
_backing
= _backing.Clear();
292
_backing
= _backing.Remove(item.Key);
31 references to _backing
MSBuildTaskHost (31)
CopyOnWriteDictionary.cs (31)
76
object v = info.GetValue(nameof(
_backing
), typeof(KeyValuePair<string, V>[]))!;
103
_backing = that.
_backing
;
114
public ICollection<string> Keys => ((IDictionary<string, V>)
_backing
).Keys;
119
public ICollection<V> Values => ((IDictionary<string, V>)
_backing
).Values;
124
public int Count =>
_backing
.Count;
129
public bool IsReadOnly => ((IDictionary<string, V>)
_backing
).IsReadOnly;
171
get =>
_backing
.KeyComparer;
172
private set => _backing =
_backing
.WithComparers(keyComparer: value);
180
get =>
_backing
[key];
184
_backing =
_backing
.SetItem(key, value);
208
_backing =
_backing
.SetItem(key, value);
216
_backing =
_backing
.SetItems(items);
221
return
_backing
.Where(predicate);
228
return
_backing
.ContainsKey(key);
236
ImmutableDictionary<string, V> initial =
_backing
;
238
_backing =
_backing
.Remove(key);
240
return initial !=
_backing
; // whether the removal occured
249
return
_backing
.TryGetValue(key, out value);
258
_backing =
_backing
.SetItem(item.Key, item.Value);
266
_backing =
_backing
.Clear();
274
return
_backing
.Contains(item);
282
((IDictionary<string, V>)
_backing
).CopyTo(array, arrayIndex);
290
ImmutableDictionary<string, V> initial =
_backing
;
292
_backing =
_backing
.Remove(item.Key);
294
return initial !=
_backing
; // whether the removal occured
302
return
_backing
.GetEnumerator();
344
return ((IDictionary)
_backing
).GetEnumerator();
381
return ReferenceEquals(other.
_backing
,
_backing
);
386
ImmutableDictionary<string, V> snapshot =
_backing
;
389
info.AddValue(nameof(
_backing
), array);