1 write to _minIndexInclusive
System.Linq (1)
System\Linq\SkipTake.SpeedOpt.cs (1)
223_minIndexInclusive = minIndexInclusive;
15 references to _minIndexInclusive
System.Linq (15)
System\Linq\SkipTake.SpeedOpt.cs (15)
231private int Limit => _maxIndexInclusive + 1 - _minIndexInclusive; // This is that upper bound. 234new IEnumerableSkipTakeIterator<TSource>(_source, _minIndexInclusive, _maxIndexInclusive); 258return Math.Max(_source.Count() - _minIndexInclusive, 0); 272Debug.Assert(count != (uint)int.MaxValue + 1 || _minIndexInclusive > 0, "Our return value will be incorrect."); 273return Math.Max((int)count - _minIndexInclusive, 0); 327int minIndex = _minIndexInclusive + count; 353int maxIndex = _minIndexInclusive + count - 1; 376return new IEnumerableSkipTakeIterator<TSource>(_source, _minIndexInclusive, maxIndex); 384Debug.Assert(_minIndexInclusive + index >= 0, $"Adding {nameof(index)} caused {nameof(_minIndexInclusive)} to overflow."); 388return iterator.TryGetElementAt(_minIndexInclusive + index, out found); 392if (SkipBefore(_minIndexInclusive + index, en) && en.MoveNext()) 409return iterator.TryGetElementAt(_minIndexInclusive, out found); 429count >= _minIndexInclusive) 516private bool SkipBeforeFirst(IEnumerator<TSource> en) => SkipBefore(_minIndexInclusive, en);