We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0a8335 commit 4f962b4Copy full SHA for 4f962b4
Microsoft.Toolkit.Mvvm/Messaging/Internals/ConditionalWeakTable2{TKey,TValue}.cs
@@ -129,6 +129,8 @@ public bool MoveNext()
129
130
while (node is not null)
131
{
132
+ LinkedListNode<WeakReference<TKey>>? nextNode = node.Next;
133
+
134
// Get the key and value for the current node
135
if (node.Value.TryGetTarget(out TKey? target) &&
136
this.owner.table.TryGetValue(target!, out TValue? value))
@@ -144,7 +146,7 @@ public bool MoveNext()
144
146
this.owner.keys.Remove(node);
145
147
}
148
- node = node.Next;
149
+ node = nextNode;
150
151
152
return false;
0 commit comments