1 write to _headIndex
System.Linq (1)
System\Linq\Union.cs (1)
262_headIndex = headIndex;
5 references to _headIndex
System.Linq (5)
System\Linq\Union.cs (5)
265private protected override Iterator<TSource> Clone() => new UnionIteratorN<TSource>(_sources, _headIndex, _comparer); 267internal override IEnumerable<TSource>? GetEnumerable(int index) => index > _headIndex ? null : _sources.GetNode(_headIndex - index).Item; 271if (_headIndex == int.MaxValue - 2) 279return new UnionIteratorN<TSource>(_sources.Add(next), _headIndex + 1, _comparer);