9 writes to _count
System.Collections.Immutable (9)
System\Collections\Immutable\ImmutableArray_1.Builder.cs (9)
37
_count
= 0;
124
_count
= value;
211
_count
= 0;
234
_count
= 0;
262
_count
++;
292
_count
+= count;
318
_count
+= items.Length;
330
_count
= newCount;
348
_count
+= count;
27 references to _count
System.Collections.Immutable (27)
System\Collections\Immutable\ImmutableArray_1.Builder.cs (27)
57
if (value <
_count
)
67
if (
_count
> 0)
69
Array.Copy(_elements, temp,
_count
);
93
return
_count
;
99
if (value <
_count
)
106
if (
_count
- value > 64)
108
Array.Clear(_elements, value,
_count
- value);
118
else if (value >
_count
)
228
if (result.Length !=
_count
)
281
Array.Copy(_elements, index, _elements, index + count,
_count
- index);
313
Array.Copy(_elements, index, _elements, index + items.Length,
_count
- index);
327
int newCount =
_count
+ 1;
329
_elements[
_count
] = item;
346
if (items.TryCopyTo(_elements,
_count
))
521
int index = this.IndexOf(element, 0,
_count
, equalityComparer);
545
for (int i = 0; i <
_count
; i++)
583
Requires.Range(index >= 0 && index <=
_count
, nameof(index));
584
Requires.Range(length >= 0 && index <=
_count
- length, nameof(length));
591
if (index + length < this.
_count
)
623
int index = this.IndexOf(item, 0,
_count
, equalityComparer);
624
while (index >= 0 && !indicesToRemove.Add(index) && index + 1 <
_count
)
654
int index = this.IndexOf(oldValue, 0,
_count
, equalityComparer);
749
return this.IndexOf(item, 0,
_count
, EqualityComparer<T>.Default);
917
Array.Reverse<T>(_elements, 0,
_count
);
948
_elements.AsSpan(0,
_count
).Sort(comparison);
967
Array.Sort(_elements, 0,
_count
, comparer);
1078
internal Memory<T> AsMemory() => new(_elements, 0,
_count
);