1 write to _maxIndexInclusive
System.Linq (1)
System\Linq\SkipTake.SpeedOpt.cs (1)
239_maxIndexInclusive = maxIndexInclusive;
9 references to _maxIndexInclusive
System.Linq (9)
System\Linq\SkipTake.SpeedOpt.cs (9)
244private bool HasLimit => _maxIndexInclusive != -1; 246private int Limit => _maxIndexInclusive + 1 - _minIndexInclusive; // This is that upper bound. 249new IEnumerableSkipTakeIterator<TSource>(_source, _minIndexInclusive, _maxIndexInclusive); 286uint count = SkipAndCount((uint)_maxIndexInclusive + 1, en); 354else if ((uint)minIndex > (uint)_maxIndexInclusive) 363return new IEnumerableSkipTakeIterator<TSource>(_source, minIndex, _maxIndexInclusive); 382else if ((uint)maxIndex >= (uint)_maxIndexInclusive) 449return (uint)count <= (uint)_maxIndexInclusive ? 451iterator.TryGetElementAt(_maxIndexInclusive, out found);