4 writes to _count
System.Collections.Immutable (4)
System\Collections\Immutable\ImmutableList_1.Node.cs (4)
92_count = ParentCount(left, right); 1477_count = ParentCount(left, right); 1501_count = ParentCount(left, _right!); 1525_count = ParentCount(_left!, right);
20 references to _count
System.Collections.Immutable (20)
System\Collections\Immutable\ImmutableList_1.Node.cs (20)
156public int Count => _count; 175if (index < _left._count) 180if (index > _left._count) 182return _right[index - _left._count - 1]; 204if (index < _left._count) 209if (index > _left._count) 211return ref _right.ItemRefUnchecked(index - _left._count - 1); 332if (index <= _left!._count) 340Node newRight = _right!.Insert(index - _left._count - 1, key); 399if (index <= _left!._count) 406Node newRight = _right!.InsertRange(index - _left._count - 1, keys); 424if (index == _left._count) 455else if (index < _left._count) 462ImmutableList<T>.Node newRight = _right.RemoveAt(index - _left._count - 1); 524if (index == _left!._count) 529else if (index < _left._count) 536ImmutableList<T>.Node newRight = _right!.ReplaceAt(index - _left._count - 1, value); 1105return this.FindIndex(0, _count, match); 1545private static int ParentCount(Node left, Node right) => 1 + left._count + right._count;