4 writes to _index
mscorlib (4)
system\collections\stack.cs (4)
317
_index
= -2;
330
_index
= _stack._size-1;
340
retval = (--
_index
>= 0);
358
_index
= -2;
7 references to _index
mscorlib (7)
system\collections\stack.cs (7)
329
if (
_index
== -2) { // First call to enumerator.
331
retval = (
_index
>= 0);
333
currentElement = _stack._array[
_index
];
336
if (
_index
== -1) { // End of enumeration.
342
currentElement = _stack._array[
_index
];
350
if (
_index
== -2) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumNotStarted));
351
if (
_index
== -1) throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_EnumEnded));