3 writes to _array
System.Collections.NonGeneric (3)
System\Collections\Stack.cs (3)
34
_array
= new object[_defaultCapacity];
47
_array
= new object[initialCapacity];
181
_array
= newArray;
18 references to _array
System.Collections.NonGeneric (18)
System\Collections\Stack.cs (18)
80
Array.Clear(
_array
, 0, _size); // Don't need to doc this but we clear the elements so that the gc can reclaim the references.
89
Array.Copy(
_array
, s.
_array
, _size);
102
if (
_array
[count] == null)
105
else if (
_array
[count] != null &&
_array
[count]!.Equals(obj))
130
objArray[i + index] =
_array
[_size - i - 1];
138
array.SetValue(
_array
[_size - i - 1], i + index);
157
return
_array
[_size - 1];
168
object? obj =
_array
[--_size];
169
_array
[_size] = null; // Free memory quicker.
177
if (_size ==
_array
.Length)
179
object[] newArray = new object[2 *
_array
.Length];
180
Array.Copy(
_array
, newArray, _size);
183
_array
[_size++] = obj;
207
objArray[i] =
_array
[_size - i - 1];
347
_currentElement = _stack.
_array
[_index];
357
_currentElement = _stack.
_array
[_index];