5 writes to _index
System.Collections (5)
System\Collections\Generic\Stack.cs (5)
363
_index
= -2;
369
_index
= -1;
378
_index
= _stack._size - 1;
389
retval = (--
_index
>= 0);
421
_index
= -2;
9 references to _index
System.Collections (9)
System\Collections\Generic\Stack.cs (9)
376
if (
_index
== -2)
379
retval = (
_index
>= 0);
381
_currentElement = _stack._array[
_index
];
384
if (
_index
== -1)
391
_currentElement = _stack._array[
_index
];
401
if (
_index
< 0)
409
Debug.Assert(
_index
== -1 ||
_index
== -2);
410
throw new InvalidOperationException(
_index
== -2 ? SR.InvalidOperation_EnumNotStarted : SR.InvalidOperation_EnumEnded);