1 write to _minIndexInclusive
System.Linq (1)
System\Linq\SkipTake.SpeedOpt.cs (1)
242_minIndexInclusive = minIndexInclusive;
15 references to _minIndexInclusive
System.Linq (15)
System\Linq\SkipTake.SpeedOpt.cs (15)
250private int Limit => _maxIndexInclusive + 1 - _minIndexInclusive; // This is that upper bound. 253new IEnumerableSkipTakeIterator<TSource>(_source, _minIndexInclusive, _maxIndexInclusive); 277return Math.Max(_source.Count() - _minIndexInclusive, 0); 291Debug.Assert(count != (uint)int.MaxValue + 1 || _minIndexInclusive > 0, "Our return value will be incorrect."); 292return Math.Max((int)count - _minIndexInclusive, 0); 346int minIndex = _minIndexInclusive + count; 372int maxIndex = _minIndexInclusive + count - 1; 395return new IEnumerableSkipTakeIterator<TSource>(_source, _minIndexInclusive, maxIndex); 403Debug.Assert(_minIndexInclusive + index >= 0, $"Adding {nameof(index)} caused {nameof(_minIndexInclusive)} to overflow."); 407return iterator.TryGetElementAt(_minIndexInclusive + index, out found); 411if (SkipBefore(_minIndexInclusive + index, en) && en.MoveNext()) 428return iterator.TryGetElementAt(_minIndexInclusive, out found); 450if (count <= _minIndexInclusive) 544private bool SkipBeforeFirst(IEnumerator<TSource> en) => SkipBefore(_minIndexInclusive, en);