1 write to _hasOnlyCollections
System.Linq (1)
System\Linq\Concat.cs (1)
149_hasOnlyCollections = hasOnlyCollections;
7 references to _hasOnlyCollections
System.Linq (7)
System\Linq\Concat.cs (2)
154private protected override Iterator<TSource> Clone() => new ConcatNIterator<TSource>(_tail, _head, _headIndex, _hasOnlyCollections); 166bool hasOnlyCollections = _hasOnlyCollections && next is ICollection<TSource>;
System\Linq\Concat.SpeedOpt.cs (5)
157if (onlyIfCheap && !_hasOnlyCollections) 173Debug.Assert(!_hasOnlyCollections || collection is not null); 187public override TSource[] ToArray() => _hasOnlyCollections ? PreallocatingToArray() : LazyToArray(); 193Debug.Assert(!_hasOnlyCollections); 225Debug.Assert(_hasOnlyCollections);