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

◆ MoveNext()

bool System.Collections.Generic.HashSet< T >.Enumerator.MoveNext ( )
inline

Implements System.Collections.IEnumerator.

Definition at line 56 of file HashSet.cs.

57 {
59 {
60 ThrowHelper.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion();
61 }
62 while ((uint)_index < (uint)_hashSet._count)
63 {
65 if (reference.Next >= -1)
66 {
67 _current = reference.Value;
68 return true;
69 }
70 }
72 _current = default(T);
73 return false;
74 }

References System.Collections.Generic.Dictionary< TKey, TValue >._count, System.Collections.Generic.HashSet< T >.Enumerator._current, System.Collections.Generic.Dictionary< TKey, TValue >._entries, System.Collections.Generic.HashSet< T >.Enumerator._hashSet, System.Collections.Generic.HashSet< T >.Enumerator._index, System.Collections.Generic.Dictionary< TKey, TValue >._version, System.Collections.Generic.HashSet< T >.Enumerator._version, System.Runtime.Serialization.Dictionary, and System.ThrowHelper.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion().