7 references to Limit
System.Linq (7)
System\Linq\SkipTake.SpeedOpt.cs (7)
238
Debug.Assert(maxIndexInclusive == -1 || (maxIndexInclusive - minIndexInclusive < int.MaxValue), $"{nameof(
Limit
)} will overflow!");
324
if ((!HasLimit || taken <
Limit
) && _enumerator.MoveNext())
401
if (index >= 0 && (!HasLimit || index <
Limit
))
424
Debug.Assert(!HasLimit ||
Limit
> 0);
468
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.
522
int remaining =
Limit
- 1; // Max number of items left, not counting the current element.