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