7 writes to _size
System (7)
compmod\system\collections\generic\stack.cs (7)
47
_size
= 0;
58
_size
= 0;
76
_size
= count;
79
_size
= 0;
114
_size
= 0;
226
T item = _array[--
_size
];
240
_array[
_size
++] = item;
22 references to _size
System (22)
compmod\system\collections\generic\stack.cs (22)
92
get { return
_size
; }
113
Array.Clear(_array, 0,
_size
); // Don't need to doc this but we clear the elements so that the gc can reclaim the references.
120
int count =
_size
;
146
if (array.Length - arrayIndex <
_size
) {
150
Array.Copy(_array, 0, array, arrayIndex,
_size
);
151
Array.Reverse(array, arrayIndex,
_size
);
171
if (array.Length - arrayIndex <
_size
) {
176
Array.Copy(_array, 0, array, arrayIndex,
_size
);
177
Array.Reverse(array, arrayIndex,
_size
);
202
if(
_size
< threshold ) {
203
T[] newarray = new T[
_size
];
204
Array.Copy(_array, 0, newarray, 0,
_size
);
214
if (
_size
==0)
216
return _array[
_size
-1];
223
if (
_size
== 0)
227
_array[
_size
] = default(T); // Free memory quicker.
235
if (
_size
== _array.Length) {
237
Array.Copy(_array, 0, newArray, 0,
_size
);
247
T[] objArray = new T[
_size
];
249
while(i <
_size
) {
250
objArray[i] = _array[
_size
-i-1];
287
_index = _stack.
_size
-1;