11 writes to _count
System.Collections.Immutable (11)
System\Collections\Immutable\ImmutableArray_1.Builder.cs (11)
38
_count
= 0;
125
_count
= value;
212
_count
= 0;
235
_count
= 0;
263
_count
++;
293
_count
+= count;
319
_count
+= items.Length;
331
_count
= newCount;
349
_count
+= count;
602
this.
_count
-= length;
1096
_count
-= indicesToRemove.Count;
26 references to _count
System.Collections.Immutable (26)
System\Collections\Immutable\ImmutableArray_1.Builder.cs (26)
58
if (value <
_count
)
68
if (
_count
> 0)
70
Array.Copy(_elements, temp,
_count
);
94
return
_count
;
100
if (value <
_count
)
107
if (
_count
- value > 64)
109
Array.Clear(_elements, value,
_count
- value);
119
else if (value >
_count
)
229
if (result.Length !=
_count
)
282
Array.Copy(_elements, index, _elements, index + count,
_count
- index);
314
Array.Copy(_elements, index, _elements, index + items.Length,
_count
- index);
328
int newCount =
_count
+ 1;
330
_elements[
_count
] = item;
347
if (items.TryCopyTo(_elements,
_count
))
522
int index = this.IndexOf(element, 0,
_count
, equalityComparer);
544
for (int i = 0; i <
_count
; i++)
582
Requires.Range(index >= 0 && index <=
_count
, nameof(index));
583
Requires.Range(length >= 0 && index <=
_count
- length, nameof(length));
590
if (index + length < this.
_count
)
629
int index = this.IndexOf(item, 0,
_count
, equalityComparer);
630
while (index >= 0 && !indicesToRemove.Add(index) && index + 1 <
_count
)
660
int index = this.IndexOf(oldValue, 0,
_count
, equalityComparer);
755
return this.IndexOf(item, 0,
_count
, EqualityComparer<T>.Default);
924
Array.Reverse<T>(_elements, 0,
_count
);
970
_elements.AsSpan(0,
_count
).Sort(comparison);
989
Array.Sort(_elements, 0,
_count
, comparer);