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)
80Array.Clear(_array, 0, _size); // Don't need to doc this but we clear the elements so that the gc can reclaim the references. 89Array.Copy(_array, s._array, _size); 102if (_array[count] == null) 105else if (_array[count] != null && _array[count]!.Equals(obj)) 130objArray[i + index] = _array[_size - i - 1]; 138array.SetValue(_array[_size - i - 1], i + index); 157return _array[_size - 1]; 168object? obj = _array[--_size]; 169_array[_size] = null; // Free memory quicker. 177if (_size == _array.Length) 179object[] newArray = new object[2 * _array.Length]; 180Array.Copy(_array, newArray, _size); 183_array[_size++] = obj; 207objArray[i] = _array[_size - i - 1]; 347_currentElement = _stack._array[_index]; 357_currentElement = _stack._array[_index];