1 write to _takeCount
System.Linq (1)
System\Linq\Shuffle.SpeedOpt.cs (1)
99
_takeCount
= takeCount;
11 references to _takeCount
System.Linq (11)
System\Linq\Shuffle.SpeedOpt.cs (11)
102
private protected override Iterator<TSource> Clone() => new ShuffleTakeIterator<TSource>(_source,
_takeCount
);
124
List<TSource>? buffer = SampleToList(_source,
_takeCount
, out _);
143
public override TSource[] ToArray() => SampleToList(_source,
_takeCount
, out _)?.ToArray() ?? [];
145
public override List<TSource> ToList() => SampleToList(_source,
_takeCount
, out _) ?? [];
148
TryGetNonEnumeratedCount(_source, out int count) ? Math.Min(
_takeCount
, count) :
149
!onlyIfCheap ? Math.Min(
_takeCount
, _source.Take(
_takeCount
).Count()) :
164
if ((uint)index < (uint)Math.Min(
_takeCount
, iteratorCount))
172
if ((uint)index < (uint)Math.Min(
_takeCount
, count))
181
if (sample is not null && index < Math.Min(
_takeCount
, totalElementCount))
193
_takeCount
<= count ? this : new ShuffleTakeIterator<TSource>(_source, count);