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