8 instantiations of WeakKey
System.Activities.Presentation (8)
System.Activities.Presentation\System\Activities\Presentation\Model\WeakKeyDictionary.cs (8)
94
return _internalDictionary[new
WeakKey
(key)];
99
WeakKey k = new
WeakKey
(key);
112
WeakKey k = new
WeakKey
(key);
122
WeakKey k = new
WeakKey
(key);
135
return _internalDictionary.ContainsKey(new
WeakKey
(key));
142
return _internalDictionary.Remove(new
WeakKey
(key));
165
result = _internalDictionary.TryGetValue(new
WeakKey
(item.Key), out value);
192
WeakKey key = new
WeakKey
(item.Key);
23 references to WeakKey
System.Activities.Presentation (23)
System.Activities.Presentation\System\Activities\Presentation\Model\WeakKeyDictionary.cs (23)
17
private Dictionary<
WeakKey
, V> _internalDictionary;
23
_internalDictionary = new Dictionary<
WeakKey
, V>(new WeakComparer());
28
_internalDictionary = new Dictionary<
WeakKey
, V>(new WeakComparer(comparer));
46
foreach (
WeakKey
key in _internalDictionary.Keys)
99
WeakKey
k = new WeakKey(key);
112
WeakKey
k = new WeakKey(key);
122
WeakKey
k = new WeakKey(key);
181
foreach (KeyValuePair<
WeakKey
, V> item in _internalDictionary)
192
WeakKey
key = new WeakKey(item.Key);
205
List<
WeakKey
> lostKeys = null;
208
foreach (KeyValuePair<
WeakKey
, V> item in _internalDictionary)
219
lostKeys = new List<
WeakKey
>();
230
foreach (
WeakKey
key in lostKeys)
250
List<
WeakKey
> lostKeys = null;
253
foreach (
WeakKey
key in _internalDictionary.Keys)
259
lostKeys = new List<
WeakKey
>();
269
foreach (
WeakKey
key in lostKeys)
318
private class WeakComparer : IEqualityComparer<
WeakKey
>
331
public bool Equals(
WeakKey
x,
WeakKey
y)
362
public int GetHashCode(
WeakKey
obj)
371
WeakKey
_key;
373
public LostKeyFinder(WeakKeyDictionary<K, V> dictionary,
WeakKey
key)