3 writes to _array
mscorlib (3)
system\collections\stack.cs (3)
40
_array
= new Object[_defaultCapacity];
53
_array
= new Object[initialCapacity];
186
_array
= newArray;
18 references to _array
mscorlib (18)
system\collections\stack.cs (18)
93
Array.Clear(
_array
, 0, _size); // Don't need to doc this but we clear the elements so that the gc can reclaim the references.
103
Array.Copy(
_array
, 0, s.
_array
, 0, _size);
113
if (
_array
[count] == null)
116
else if (
_array
[count] != null &&
_array
[count].Equals(obj)) {
139
objArray[i+index] =
_array
[_size-i-1];
145
array.SetValue(
_array
[_size-i-1], i+index);
163
return
_array
[_size-1];
174
Object obj =
_array
[--_size];
175
_array
[_size] = null; // Free memory quicker.
183
if (_size ==
_array
.Length) {
184
Object[] newArray = new Object[2*
_array
.Length];
185
Array.Copy(
_array
, 0, newArray, 0, _size);
188
_array
[_size++] = obj;
212
objArray[i] =
_array
[_size-i-1];
333
currentElement = _stack.
_array
[_index];
342
currentElement = _stack.
_array
[_index];