5 writes to _index
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Queue.cs (5)
433
_index
= -1;
439
_index
= -2;
450
_index
++;
455
_index
= -2;
507
_index
= -1;
7 references to _index
System.Private.CoreLib (7)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Queue.cs (7)
447
if (
_index
== -2)
452
if (
_index
== _q._size)
467
uint arrayIndex = (uint)(_q._head +
_index
); // this is the actual index into the queue's backing array
487
if (
_index
< 0)
495
Debug.Assert(
_index
== -1 ||
_index
== -2);
496
throw new InvalidOperationException(
_index
== -1 ? SR.InvalidOperation_EnumNotStarted : SR.InvalidOperation_EnumEnded);