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)
102private protected override Iterator<TSource> Clone() => new ShuffleTakeIterator<TSource>(_source, _takeCount); 124List<TSource>? buffer = SampleToList(_source, _takeCount, out _); 143public override TSource[] ToArray() => SampleToList(_source, _takeCount, out _)?.ToArray() ?? []; 145public override List<TSource> ToList() => SampleToList(_source, _takeCount, out _) ?? []; 148TryGetNonEnumeratedCount(_source, out int count) ? Math.Min(_takeCount, count) : 149!onlyIfCheap ? Math.Min(_takeCount, _source.Take(_takeCount).Count()) : 164if ((uint)index < (uint)Math.Min(_takeCount, iteratorCount)) 172if ((uint)index < (uint)Math.Min(_takeCount, count)) 181if (sample is not null && index < Math.Min(_takeCount, totalElementCount)) 193_takeCount <= count ? this : new ShuffleTakeIterator<TSource>(_source, count);