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