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)
27if (_count != _items.Length) 28Array.Resize(ref _items, _count); 37Array.Copy(_items, destination, _count); 43if (_items == null || _count == _items.Length) 44Array.Resize(ref _items, 2 * _count + 1); 49public readonly Span<T> AsSpan() => _items.AsSpan(0, _count); 51public readonly Span<T> AsSpan(int start) => _items.AsSpan(start, _count - start); 55int origCount = _count; 76EnsureCapacity(_count + length); 77Array.Copy(newItems, offset, _items, _count, length); 85EnsureCapacity(_count + newItems.Count); 86Array.Copy(newItems._items, 0, _items, _count, newItems.Count); 93EnsureCapacity(_count + numItems); 108int newCount = Math.Max(2 * _count + 1, requestedCapacity); 112public readonly int Count => _count; 122for (int i = 0; i < _count; i++) 135for (int i = 0; i < _count; i++)