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!"); 307if ((!HasLimit || taken < Limit) && _enumerator.MoveNext()) 384if (index >= 0 && (!HasLimit || index < Limit)) 409Debug.Assert(!HasLimit || Limit > 0); 444int remaining = Limit - 1; // Max number of items left, not counting the current element. 470int remaining = Limit - 1; // Max number of items left, not counting the current element. 498int remaining = Limit - 1; // Max number of items left, not counting the current element.