1 write to dict
System.ObjectModel (1)
System\Collections\ObjectModel\KeyedCollection.cs (1)
260
dict
= new Dictionary<TKey, TItem>(comparer);
18 references to dict
System.ObjectModel (18)
System\Collections\ObjectModel\KeyedCollection.cs (18)
76
if (
dict
!= null)
78
return
dict
.ContainsKey(key);
96
if (
dict
!= null)
98
return
dict
.TryGetValue(key, out item!);
118
if ((
dict
== null) || ((key = GetKeyForItem(item)) == null))
124
if (
dict
.TryGetValue(key, out itemInDict!))
136
if (
dict
!= null)
139
return
dict
.TryGetValue(key, out item!) && Remove(item);
154
protected IDictionary<TKey, TItem>? Dictionary =>
dict
;
180
dict
?.Clear();
215
if (newKey != null &&
dict
!= null)
217
dict
[newKey] = item;
238
if (
dict
!= null)
240
dict
.Add(key, item);
245
dict
!.Add(key, item);
266
dict
.Add(key, item);
274
if (
dict
!= null)
276
dict
.Remove(key);