7 writes to _size
System (7)
compmod\system\collections\generic\stack.cs (7)
47_size = 0; 58_size = 0; 76_size = count; 79_size = 0; 114_size = 0; 226T item = _array[--_size]; 240_array[_size++] = item;
22 references to _size
System (22)
compmod\system\collections\generic\stack.cs (22)
92get { return _size; } 113Array.Clear(_array, 0, _size); // Don't need to doc this but we clear the elements so that the gc can reclaim the references. 120int count = _size; 146if (array.Length - arrayIndex < _size) { 150Array.Copy(_array, 0, array, arrayIndex, _size); 151Array.Reverse(array, arrayIndex, _size); 171if (array.Length - arrayIndex < _size) { 176Array.Copy(_array, 0, array, arrayIndex, _size); 177Array.Reverse(array, arrayIndex, _size); 202if( _size < threshold ) { 203T[] newarray = new T[_size]; 204Array.Copy(_array, 0, newarray, 0, _size); 214if (_size==0) 216return _array[_size-1]; 223if (_size == 0) 227_array[_size] = default(T); // Free memory quicker. 235if (_size == _array.Length) { 237Array.Copy(_array, 0, newArray, 0, _size); 247T[] objArray = new T[_size]; 249while(i < _size) { 250objArray[i] = _array[_size-i-1]; 287_index = _stack._size-1;