4 writes to _count
System.Collections.Immutable (4)
System\Collections\Immutable\ImmutableList_1.Node.cs (4)
92_count = ParentCount(left, right); 1457_count = ParentCount(left, right); 1481_count = ParentCount(left, _right!); 1505_count = ParentCount(_left!, right);
20 references to _count
System.Collections.Immutable (20)
System\Collections\Immutable\ImmutableList_1.Node.cs (20)
136public int Count => _count; 155if (index < _left._count) 160if (index > _left._count) 162return _right[index - _left._count - 1]; 184if (index < _left._count) 189if (index > _left._count) 191return ref _right.ItemRefUnchecked(index - _left._count - 1); 312if (index <= _left!._count) 320Node newRight = _right!.Insert(index - _left._count - 1, key); 379if (index <= _left!._count) 386Node newRight = _right!.InsertRange(index - _left._count - 1, keys); 404if (index == _left._count) 435else if (index < _left._count) 442ImmutableList<T>.Node newRight = _right.RemoveAt(index - _left._count - 1); 504if (index == _left!._count) 509else if (index < _left._count) 516ImmutableList<T>.Node newRight = _right!.ReplaceAt(index - _left._count - 1, value); 1085return this.FindIndex(0, _count, match); 1525private static int ParentCount(Node left, Node right) => 1 + left._count + right._count;