3 writes to dictionary
System.Activities (3)
System\Activities\HybridDictionary.cs (3)
115
this.
dictionary
= new Dictionary<TKey, TValue>();
167
this.
dictionary
= null;
201
this.
dictionary
= null;
26 references to dictionary
System.Activities (26)
System\Activities\HybridDictionary.cs (26)
28
else if (this.
dictionary
!= null)
30
return this.
dictionary
.Count;
53
else if (this.
dictionary
!= null)
55
return new ReadOnlyCollection<TValue>(new List<TValue>(this.
dictionary
.Values));
70
else if (this.
dictionary
!= null)
72
return new ReadOnlyCollection<TKey>(new List<TKey>(this.
dictionary
.Keys));
87
else if (this.
dictionary
!= null)
89
return this.
dictionary
[key];
108
if (this.singleItemKey == null && this.singleItemValue == null && this.
dictionary
== null)
117
this.
dictionary
.Add(this.singleItemKey, this.singleItemValue);
122
this.
dictionary
.Add(key, value);
127
Fx.Assert(this.
dictionary
!= null, "We should always have a dictionary at this point");
129
this.
dictionary
.Add(key, value);
144
else if (this.
dictionary
!= null)
146
return this.
dictionary
.ContainsKey(key);
161
else if (this.
dictionary
!= null)
163
bool ret = this.
dictionary
.Remove(key);
165
if (this.
dictionary
.Count == 0)
183
else if (this.
dictionary
!= null)
185
return this.
dictionary
.TryGetValue(key, out value);
210
else if (this.
dictionary
!= null)
212
return this.
dictionary
.Contains(item);
224
else if (this.
dictionary
!= null)
226
this.
dictionary
.CopyTo(array, arrayIndex);
241
else if (this.
dictionary
!= null)
243
foreach (KeyValuePair<TKey, TValue> kvp in this.
dictionary
)