7 references to Limit
System.Linq (7)
System\Linq\SkipTake.SpeedOpt.cs (7)
234
Debug.Assert(maxIndexInclusive == -1 || (maxIndexInclusive - minIndexInclusive < int.MaxValue), $"{nameof(
Limit
)} will overflow!");
320
if ((!HasLimit || taken <
Limit
) && _enumerator.MoveNext())
397
if (index >= 0 && (!HasLimit || index <
Limit
))
420
Debug.Assert(!HasLimit ||
Limit
> 0);
458
int remaining =
Limit
- 1; // Max number of items left, not counting the current element.
484
int remaining =
Limit
- 1; // Max number of items left, not counting the current element.
512
int remaining =
Limit
- 1; // Max number of items left, not counting the current element.