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

◆ MoveNext()

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

Implements System.Collections.IEnumerator.

Definition at line 50 of file Stack.cs.

51 {
53 {
55 }
56 bool flag;
57 if (_index == -2)
58 {
59 _index = _stack._size - 1;
60 flag = _index >= 0;
61 if (flag)
62 {
64 }
65 return flag;
66 }
67 if (_index == -1)
68 {
69 return false;
70 }
71 flag = --_index >= 0;
72 if (flag)
73 {
75 }
76 else
77 {
78 _currentElement = default(T);
79 }
80 return flag;
81 }
static string InvalidOperation_EnumFailedVersion
Definition SR.cs:44
Definition SR.cs:7

References System.Collections.Generic.Stack< T >.Enumerator._currentElement, System.Collections.Generic.Stack< T >.Enumerator._index, System.Collections.Generic.Stack< T >.Enumerator._stack, System.Collections.Generic.Stack< T >.Enumerator._version, System.Collections.Generic.Dictionary< TKey, TValue >._version, and System.SR.InvalidOperation_EnumFailedVersion.