7 references to Limit
System.Linq (7)
System\Linq\SkipTake.SpeedOpt.cs (7)
219
Debug.Assert(maxIndexInclusive == -1 || (maxIndexInclusive - minIndexInclusive < int.MaxValue), $"{nameof(
Limit
)} will overflow!");
307
if ((!HasLimit || taken <
Limit
) && _enumerator.MoveNext())
384
if (index >= 0 && (!HasLimit || index <
Limit
))
409
Debug.Assert(!HasLimit ||
Limit
> 0);
444
int remaining =
Limit
- 1; // Max number of items left, not counting the current element.
470
int remaining =
Limit
- 1; // Max number of items left, not counting the current element.
498
int remaining =
Limit
- 1; // Max number of items left, not counting the current element.