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)
75c.CopyTo(_array, 0); 113Array.Clear(_array, 0, _size); // Don't need to doc this but we clear the elements so that the gc can reclaim the references. 125if (((Object) _array[count]) == null) 128else if (_array[count] != null && c.Equals(_array[count], item) ) { 150Array.Copy(_array, 0, array, arrayIndex, _size); 176Array.Copy(_array, 0, array, arrayIndex, _size); 201int threshold = (int)(((double)_array.Length) * 0.9); 204Array.Copy(_array, 0, newarray, 0, _size); 216return _array[_size-1]; 226T item = _array[--_size]; 227_array[_size] = default(T); // Free memory quicker. 235if (_size == _array.Length) { 236T[] newArray = new T[(_array.Length == 0) ? _defaultCapacity : 2*_array.Length]; 237Array.Copy(_array, 0, newArray, 0, _size); 240_array[_size++] = item; 250objArray[i] = _array[_size-i-1]; 290currentElement = _stack._array[_index]; 299currentElement = _stack._array[_index];