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)
161if (onlyIfCheap && !_hasOnlyCollections) 177Debug.Assert(!_hasOnlyCollections || collection is not null); 191public override TSource[] ToArray() => _hasOnlyCollections ? PreallocatingToArray() : LazyToArray(); 197Debug.Assert(!_hasOnlyCollections); 229Debug.Assert(_hasOnlyCollections);