Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ MoveNext()

bool System.Runtime.CompilerServices.ConditionalWeakTable< TKey, TValue >.Enumerator.MoveNext ( )
inline

Implements System.Collections.IEnumerator.

Definition at line 64 of file ConditionalWeakTable.cs.

65 {
67 if (table != null)
68 {
69 lock (table._lock)
70 {
71 Container container = table._container;
72 if (container != null)
73 {
75 {
77 if (container.TryGetEntry(_currentIndex, out var key, out var value))
78 {
80 return true;
81 }
82 }
83 }
84 }
85 }
86 return false;
87 }

References System.Runtime.CompilerServices.ConditionalWeakTable< TKey, TValue >.Enumerator._current, System.Runtime.CompilerServices.ConditionalWeakTable< TKey, TValue >.Enumerator._currentIndex, System.Runtime.CompilerServices.ConditionalWeakTable< TKey, TValue >.Enumerator._maxIndexInclusive, System.Runtime.CompilerServices.ConditionalWeakTable< TKey, TValue >.Enumerator._table, System.key, System.Runtime.CompilerServices.ConditionalWeakTable< TKey, TValue >.Container.TryGetEntry(), and System.value.