5 writes to _size
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Queue.cs (5)
51
_array = EnumerableHelpers.ToArray(collection, out
_size
);
85
_size
= 0;
176
_size
++;
210
_size
--;
232
_size
--;
30 references to _size
System.Private.CoreLib (30)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Queue.cs (30)
52
if (
_size
!= _array.Length) _tail =
_size
;
55
public int Count =>
_size
;
70
if (
_size
!= 0)
76
Array.Clear(_array, _head,
_size
);
104
if (array.Length - arrayIndex <
_size
)
109
int numToCopy =
_size
;
141
if (arrayLen - index <
_size
)
146
int numToCopy =
_size
;
169
if (
_size
== _array.Length)
171
Grow(
_size
+ 1);
199
if (
_size
== 0)
220
if (
_size
== 0)
242
if (
_size
== 0)
252
if (
_size
== 0)
266
if (
_size
== 0)
273
return Array.IndexOf(_array, item, _head,
_size
) >= 0;
288
if (
_size
== 0)
293
T[] arr = new T[
_size
];
297
Array.Copy(_array, _head, arr, 0,
_size
);
312
Debug.Assert(capacity >=
_size
);
314
if (
_size
> 0)
318
Array.Copy(_array, _head, newarray, 0,
_size
);
329
_tail = (
_size
== capacity) ? 0 :
_size
;
349
Debug.Assert(
_size
== 0);
356
if (
_size
< threshold)
358
SetCapacity(
_size
);
370
ArgumentOutOfRangeException.ThrowIfLessThan(capacity,
_size
);
452
if (_index == _q.
_size
)