6 writes to _array
System.Collections (6)
System\Collections\Generic\Stack.cs (6)
37_array = Array.Empty<T>(); 45_array = new T[capacity]; 54_array = EnumerableHelpers.ToArray(collection, out _size); 170Array.Resize(ref _array, _size); 187Array.Resize(ref _array, capacity); 327Array.Resize(ref _array, newcapacity);
23 references to _array
System.Collections (23)
System\Collections\Generic\Stack.cs (23)
63public int Capacity => _array.Length; 75Array.Clear(_array, 0, _size); // Don't need to doc this but we clear the elements so that the gc can reclaim the references. 93return _size != 0 && Array.LastIndexOf(_array, item, _size - 1) != -1; 111Debug.Assert(array != _array); 116array[--dstIndex] = _array[srcIndex++]; 146Array.Copy(_array, 0, array, arrayIndex, _size); 167int threshold = (int)(_array.Length * 0.9); 184if (capacity == _array.Length) 195T[] array = _array; 208T[] array = _array; 224T[] array = _array; 247T[] array = _array; 269T[] array = _array; 287Debug.Assert(_size == _array.Length); 289_array[_size] = item; 305if (_array.Length < capacity) 310return _array.Length; 315Debug.Assert(_array.Length < capacity); 317int newcapacity = _array.Length == 0 ? DefaultCapacity : 2 * _array.Length; 340objArray[i] = _array[_size - i - 1]; 381_currentElement = _stack._array[_index]; 391_currentElement = _stack._array[_index];