4 writes to _backing
MSBuildTaskHost (4)
Immutable\ImmutableDictionary.cs (4)
174
_backing
= new Dictionary<K, V>();
179
_backing
= new Dictionary<K, V>(comparer);
186
_backing
= new Dictionary<K, V>(imm._backing, keyComparer ?? imm._backing.Comparer);
190
_backing
= new Dictionary<K, V>(source, keyComparer);
29 references to _backing
MSBuildTaskHost (29)
Immutable\ImmutableDictionary.cs (29)
41
public ICollection<K> Keys =>
_backing
.Keys;
42
public ICollection<V> Values =>
_backing
.Values;
44
ICollection IDictionary.Keys =>
_backing
.Keys;
45
ICollection IDictionary.Values =>
_backing
.Values;
47
public int Count =>
_backing
.Count;
49
public V this[K key] =>
_backing
[key];
59
return
_backing
.TryGetValue(key, out value);
64
return
_backing
.Contains(item);
69
return ((IDictionary)
_backing
).Contains(key);
74
return
_backing
.ContainsKey(key);
79
return
_backing
.GetEnumerator();
84
return
_backing
.GetEnumerator();
89
return
_backing
.GetEnumerator();
137
var clone = new ImmutableDictionary<K, V>(
_backing
);
138
clone.
_backing
[key] = value;
145
var clone = new ImmutableDictionary<K, V>(
_backing
);
148
clone.
_backing
[item.Key] = item.Value;
161
var clone = new ImmutableDictionary<K, V>(
_backing
);
162
clone.
_backing
.Remove(key);
169
return new ImmutableDictionary<K, V>(
_backing
.Comparer);
186
_backing = new Dictionary<K, V>(imm.
_backing
, keyComparer ?? imm.
_backing
.Comparer);
202
public IEqualityComparer<K> KeyComparer { get =>
_backing
.Comparer; internal set => throw new NotSupportedException(); }
206
return
_backing
.ToArray();
211
var n = new Dictionary<K, V>(
_backing
,
_backing
.Comparer);
223
return new ImmutableDictionary<K, V>(
_backing
, keyComparer);
232
get { return
_backing
[(K)key]; }
253
get { return
_backing
[key]; }