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