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