7 writes to _size
System.Core (7)
Microsoft\Scripting\Utils\ReadOnlyCollectionBuilder.cs (7)
81
_size
= count;
83
_size
= 0;
149
_size
++;
160
_size
--;
197
_items[
_size
++] = item;
207
_size
= 0;
422
_size
= 0;
30 references to _size
System.Core (30)
Microsoft\Scripting\Utils\ReadOnlyCollectionBuilder.cs (30)
100
ContractUtils.Requires(value >=
_size
, "value");
105
if (
_size
> 0) {
106
Array.Copy(_items, 0, newItems, 0,
_size
);
120
get { return
_size
; }
131
return Array.IndexOf(_items, item, 0,
_size
);
140
ContractUtils.Requires(index <=
_size
, "index");
142
if (
_size
== _items.Length) {
143
EnsureCapacity(
_size
+ 1);
145
if (index <
_size
) {
146
Array.Copy(_items, index, _items, index + 1,
_size
- index);
158
ContractUtils.Requires(index >= 0 && index <
_size
, "index");
161
if (index <
_size
) {
162
Array.Copy(_items, index + 1, _items, index,
_size
- index);
164
_items[
_size
] = default(T);
175
ContractUtils.Requires(index <
_size
, "index");
179
ContractUtils.Requires(index <
_size
, "index");
194
if (
_size
== _items.Length) {
195
EnsureCapacity(
_size
+ 1);
205
if (
_size
> 0) {
206
Array.Clear(_items, 0,
_size
);
219
for (int i = 0; i <
_size
; i++) {
227
for (int i = 0; i <
_size
; i++) {
243
Array.Copy(_items, 0, array, arrayIndex,
_size
);
359
Array.Copy(_items, 0, array, index,
_size
);
402
T[] array = new T[
_size
];
403
Array.Copy(_items, 0, array, 0,
_size
);
416
if (
_size
== _items.Length) {
492
if (_index == 0 || _index > _builder.
_size
) {
501
if (_index < _builder.
_size
) {
505
_index = _builder.
_size
+ 1;