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

◆ MoveNext()

bool System.Collections.Stack.StackEnumerator.MoveNext ( )
inline

Implements System.Collections.IEnumerator.

Definition at line 151 of file Stack.cs.

152 {
153 if (_version != _stack._version)
154 {
156 }
157 bool flag;
158 if (_index == -2)
159 {
160 _index = _stack._size - 1;
161 flag = _index >= 0;
162 if (flag)
163 {
165 }
166 return flag;
167 }
168 if (_index == -1)
169 {
170 return false;
171 }
172 flag = --_index >= 0;
173 if (flag)
174 {
176 }
177 else
178 {
179 _currentElement = null;
180 }
181 return flag;
182 }
static string InvalidOperation_EnumFailedVersion
Definition SR.cs:44
Definition SR.cs:7

References System.Collections.Stack._array, System.Collections.Stack.StackEnumerator._currentElement, System.Collections.Stack.StackEnumerator._index, System.Collections.Stack.StackEnumerator._stack, System.Collections.Stack.StackEnumerator._version, System.Collections.Stack._version, and System.SR.InvalidOperation_EnumFailedVersion.