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!");
305
if ((!HasLimit || taken <
Limit
) && _enumerator.MoveNext())
382
if (index >= 0 && (!HasLimit || index <
Limit
))
405
Debug.Assert(!HasLimit ||
Limit
> 0);
440
int remaining =
Limit
- 1; // Max number of items left, not counting the current element.
466
int remaining =
Limit
- 1; // Max number of items left, not counting the current element.
494
int remaining =
Limit
- 1; // Max number of items left, not counting the current element.