6 writes to _size
System.Collections (6)
System\Collections\Generic\Stack.cs (6)
54
_array = EnumerableHelpers.ToArray(collection, out
_size
);
77
_size
= 0;
235
_size
= size;
256
_size
= size;
275
_size
= size + 1;
291
_size
++;
27 references to _size
System.Collections (27)
System\Collections\Generic\Stack.cs (27)
57
public int Count =>
_size
;
75
Array.Clear(_array, 0,
_size
); // Don't need to doc this but we clear the elements so that the gc can reclaim the references.
93
return
_size
!= 0 && Array.LastIndexOf(_array, item,
_size
- 1) != -1;
106
if (array.Length - arrayIndex <
_size
)
113
int dstIndex = arrayIndex +
_size
;
114
while (srcIndex <
_size
)
139
if (array.Length - arrayIndex <
_size
)
146
Array.Copy(_array, 0, array, arrayIndex,
_size
);
147
Array.Reverse(array, arrayIndex,
_size
);
168
if (
_size
< threshold)
170
Array.Resize(ref _array,
_size
);
182
ArgumentOutOfRangeException.ThrowIfLessThan(capacity,
_size
);
194
int size =
_size
- 1;
207
int size =
_size
- 1;
223
int size =
_size
- 1;
246
int size =
_size
- 1;
268
int size =
_size
;
287
Debug.Assert(
_size
== _array.Length);
288
Grow(
_size
+ 1);
289
_array[
_size
] = item;
333
if (
_size
== 0)
336
T[] objArray = new T[
_size
];
338
while (i <
_size
)
340
objArray[i] = _array[
_size
- i - 1];
348
Debug.Assert(
_size
== 0);
378
_index = _stack.
_size
- 1;