5 writes to _count
System.Private.CoreLib (5)
src\runtime\src\coreclr\tools\Common\System\Collections\Generic\ArrayBuilder.cs (5)
45
_items[
_count
++] = item;
58
_count
= origCount + length;
78
_count
+= length;
87
_count
+= newItems.Count;
94
_count
+= numItems;
17 references to _count
System.Private.CoreLib (17)
src\runtime\src\coreclr\tools\Common\System\Collections\Generic\ArrayBuilder.cs (17)
27
if (
_count
!= _items.Length)
28
Array.Resize(ref _items,
_count
);
37
Array.Copy(_items, destination,
_count
);
43
if (_items == null ||
_count
== _items.Length)
44
Array.Resize(ref _items, 2 *
_count
+ 1);
49
public readonly Span<T> AsSpan() => _items.AsSpan(0,
_count
);
51
public readonly Span<T> AsSpan(int start) => _items.AsSpan(start,
_count
- start);
55
int origCount =
_count
;
76
EnsureCapacity(
_count
+ length);
77
Array.Copy(newItems, offset, _items,
_count
, length);
85
EnsureCapacity(
_count
+ newItems.Count);
86
Array.Copy(newItems._items, 0, _items,
_count
, newItems.Count);
93
EnsureCapacity(
_count
+ numItems);
108
int newCount = Math.Max(2 *
_count
+ 1, requestedCapacity);
112
public readonly int Count =>
_count
;
122
for (int i = 0; i <
_count
; i++)
135
for (int i = 0; i <
_count
; i++)