7 writes to _size
mscorlib (7)
system\collections\arraylist.cs (7)
208return _size++; 271_size = 0; 283la._size = _size; 469_size++; 496_size += count; 601_size--; 624_size -= count;
62 references to _size
mscorlib (62)
system\collections\arraylist.cs (62)
112if (value < _size) { 122if (_size > 0) { 123Array.Copy(_items, 0, newItems, 0, _size); 138return _size; 171if (index < 0 || index >= _size) throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index")); 176if (index < 0 || index >= _size) throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index")); 205if (_size == _items.Length) EnsureCapacity(_size + 1); 206_items[_size] = value; 216InsertRange(_size, c); 244if (_size - index < count) 268if (_size > 0) 270Array.Clear(_items, 0, _size); // Don't need to doc this but we clear the elements so that the gc can reclaim the references. 282ArrayList la = new ArrayList(_size); 283la._size = _size; 285Array.Copy(_items, 0, la._items, 0, _size); 296for(int i=0; i<_size; i++) 302for(int i=0; i<_size; i++) 324Array.Copy(_items, 0, array, arrayIndex, _size); 332if (_size - index < count) 398if (_size - index < count) 416return Array.IndexOf((Array)_items, value, 0, _size); 429if (startIndex > _size) 433return Array.IndexOf((Array)_items, value, startIndex, _size - startIndex); 446if (startIndex > _size) 448if (count <0 || startIndex > _size - count) throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_Count")); 460if (index < 0 || index > _size) throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_ArrayListInsert")); 464if (_size == _items.Length) EnsureCapacity(_size + 1); 465if (index < _size) { 466Array.Copy(_items, index, _items, index + 1, _size - index); 481if (index < 0 || index > _size) throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index")); 487EnsureCapacity(_size + count); 489if (index < _size) { 490Array.Copy(_items, index, _items, index + count, _size - index); 511Contract.Ensures(Contract.Result<int>() < _size); 512return LastIndexOf(value, _size - 1, _size); 526if (startIndex >= _size) 548if (_size == 0) // Special case for an empty list 551if (startIndex >= _size || count > startIndex + 1) 552throw new ArgumentOutOfRangeException((startIndex>=_size ? "startIndex" : "count"), Environment.GetResourceString("ArgumentOutOfRange_BiggerThanCollection")); 596if (index < 0 || index >= _size) throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index")); 602if (index < _size) { 603Array.Copy(_items, index + 1, _items, index, _size - index); 605_items[_size] = null; 616if (_size - index < count) 623int i = _size; 625if (index < _size) { 626Array.Copy(_items, index + count, _items, index, _size - index); 628while (i > _size) _items[--i] = null; 665if (_size - index < count) 679if (index < 0 || index > _size - count) throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index")); 690if (_size - index < count) 724if (_size - index < count) 759Object[] array = new Object[_size]; 760Array.Copy(_items, 0, array, 0, _size); 775Array array = Array.UnsafeCreateInstance(type, _size); 776Array.Copy(_items, 0, array, 0, _size); 790Capacity = _size; 2570if (index < list._size - 1) { 2576index =list._size;