7 writes to _items
System.Linq.Expressions (7)
System\Runtime\CompilerServices\ReadOnlyCollectionBuilder.cs (7)
28
_items
= Array.Empty<T>();
41
_items
= new T[capacity];
55
_items
= new T[count];
62
_items
= new T[DefaultCapacity];
93
_items
= newItems;
97
_items
= Array.Empty<T>();
423
_items
= Array.Empty<T>();
27 references to _items
System.Linq.Expressions (27)
System\Runtime\CompilerServices\ReadOnlyCollectionBuilder.cs (27)
56
c.CopyTo(
_items
, 0);
79
get { return
_items
.Length; }
84
if (value !=
_items
.Length)
91
Array.Copy(
_items
, newItems, _size);
117
return Array.IndexOf(
_items
, item, 0, _size);
129
if (_size ==
_items
.Length)
135
Array.Copy(
_items
, index,
_items
, index + 1, _size - index);
137
_items
[index] = item;
154
Array.Copy(
_items
, index + 1,
_items
, index, _size - index);
156
_items
[_size] = default(T)!;
171
return
_items
[index];
177
_items
[index] = value;
192
if (_size ==
_items
.Length)
196
_items
[_size++] = item;
207
Array.Clear(
_items
, 0, _size);
226
public void CopyTo(T[] array, int arrayIndex) => Array.Copy(
_items
, 0, array, arrayIndex, _size);
358
Array.Copy(
_items
, 0, array, index, _size);
385
Array.Reverse(
_items
, index, count);
396
Array.Copy(
_items
, array, _size);
415
if (_size ==
_items
.Length)
417
items =
_items
;
432
if (
_items
.Length < min)
435
if (
_items
.Length > 0)
437
newCapacity =
_items
.Length * 2;
510
_current = _builder.
_items
[_index++];