7 writes to _items
System.Private.CoreLib (7)
src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (7)
30_items = Array.Empty<object>(); 42_items = Array.Empty<object>(); 44_items = new object[capacity]; 58_items = Array.Empty<object>(); 62_items = new object[count]; 92_items = newItems; 96_items = new object[_defaultCapacity];
40 references to _items
System.Private.CoreLib (40)
src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (40)
73get => _items.Length; 83if (value != _items.Length) 90Array.Copy(_items, newItems, _size); 124return _items[index]; 129_items[index] = value; 155if (_size == _items.Length) EnsureCapacity(_size + 1); 156_items[_size] = value; 197return Array.BinarySearch((Array)_items, index, count, value, comparer); 216Array.Clear(_items, 0, _size); // Don't need to doc this but we clear the elements so that the gc can reclaim the references. 230Array.Copy(_items, la._items, _size); 239public virtual bool Contains(object? item) => Array.IndexOf(_items, item, 0, _size) >= 0; 255Array.Copy(_items, 0, array!, arrayIndex, _size); 270Array.Copy(_items, index, array!, arrayIndex, count); 279if (_items.Length < min) 281int newCapacity = _items.Length == 0 ? _defaultCapacity : _items.Length * 2; 344return Array.IndexOf((Array)_items, value, 0, _size); 360return Array.IndexOf((Array)_items, value, startIndex, _size - startIndex); 377return Array.IndexOf((Array)_items, value, startIndex, count); 389if (_size == _items.Length) EnsureCapacity(_size + 1); 392Array.Copy(_items, index, _items, index + 1, _size - index); 394_items[index] = value; 417Array.Copy(_items, index, _items, index + count, _size - index); 422itemsToInsert.CopyTo(_items, index); 480return Array.LastIndexOf((Array)_items, value, startIndex, count); 521Array.Copy(_items, index + 1, _items, index, _size - index); 523_items[_size] = null; 542Array.Copy(_items, index + count, _items, index, _size - index); 544while (i > _size) _items[--i] = null; 582Array.Reverse(_items, index, count); 598c.CopyTo(_items, index); 641Array.Sort(_items, index, count, comparer); 671Array.Copy(_items, array, _size); 686Array.Copy(_items, array, _size); 2581_currentElement = _list._items[++_index];