6 writes to _array
System (6)
compmod\system\collections\generic\stack.cs (6)
46
_array
= _emptyArray;
57
_array
= new T[capacity];
74
_array
= new T[count];
80
_array
= new T[_defaultCapacity];
205
_array
= newarray;
238
_array
= newArray;
20 references to _array
System (20)
compmod\system\collections\generic\stack.cs (20)
75
c.CopyTo(
_array
, 0);
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.
125
if (((Object)
_array
[count]) == null)
128
else if (
_array
[count] != null && c.Equals(
_array
[count], item) ) {
150
Array.Copy(
_array
, 0, array, arrayIndex, _size);
176
Array.Copy(
_array
, 0, array, arrayIndex, _size);
201
int threshold = (int)(((double)
_array
.Length) * 0.9);
204
Array.Copy(
_array
, 0, newarray, 0, _size);
216
return
_array
[_size-1];
226
T item =
_array
[--_size];
227
_array
[_size] = default(T); // Free memory quicker.
235
if (_size ==
_array
.Length) {
236
T[] newArray = new T[(
_array
.Length == 0) ? _defaultCapacity : 2*
_array
.Length];
237
Array.Copy(
_array
, 0, newArray, 0, _size);
240
_array
[_size++] = item;
250
objArray[i] =
_array
[_size-i-1];
290
currentElement = _stack.
_array
[_index];
299
currentElement = _stack.
_array
[_index];