7 writes to _size
System.Linq.Expressions (7)
System\Runtime\CompilerServices\ReadOnlyCollectionBuilder.cs (7)
57
_size
= count;
61
_size
= 0;
138
_size
++;
151
_size
--;
196
_items[
_size
++] = item;
208
_size
= 0;
424
_size
= 0;
29 references to _size
System.Linq.Expressions (29)
System\Runtime\CompilerServices\ReadOnlyCollectionBuilder.cs (29)
82
ArgumentOutOfRangeException.ThrowIfLessThan(value,
_size
);
89
if (
_size
> 0)
91
Array.Copy(_items, newItems,
_size
);
106
public int Count =>
_size
;
117
return Array.IndexOf(_items, item, 0,
_size
);
127
ArgumentOutOfRangeException.ThrowIfGreaterThan(index,
_size
);
129
if (
_size
== _items.Length)
131
EnsureCapacity(
_size
+ 1);
133
if (index <
_size
)
135
Array.Copy(_items, index, _items, index + 1,
_size
- index);
149
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index,
_size
);
152
if (index <
_size
)
154
Array.Copy(_items, index + 1, _items, index,
_size
- index);
156
_items[
_size
] = default(T)!;
169
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index,
_size
);
175
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index,
_size
);
192
if (
_size
== _items.Length)
194
EnsureCapacity(
_size
+ 1);
205
if (
_size
> 0)
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
);
395
T[] array = new T[
_size
];
396
Array.Copy(_items, array,
_size
);
408
if (
_size
== 0)
415
if (
_size
== _items.Length)
496
if (_index == 0 || _index > _builder.
_size
)
508
if (_index < _builder.
_size
)
515
_index = _builder.
_size
+ 1;