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