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)
231
private int Limit => _maxIndexInclusive + 1 -
_minIndexInclusive
; // This is that upper bound.
234
new IEnumerableSkipTakeIterator<TSource>(_source,
_minIndexInclusive
, _maxIndexInclusive);
258
return Math.Max(_source.Count() -
_minIndexInclusive
, 0);
273
Debug.Assert(count != (uint)int.MaxValue + 1 ||
_minIndexInclusive
> 0, "Our return value will be incorrect.");
274
return Math.Max((int)count -
_minIndexInclusive
, 0);
329
int minIndex =
_minIndexInclusive
+ count;
355
int maxIndex =
_minIndexInclusive
+ count - 1;
378
return new IEnumerableSkipTakeIterator<TSource>(_source,
_minIndexInclusive
, maxIndex);
386
Debug.Assert(
_minIndexInclusive
+ index >= 0, $"Adding {nameof(index)} caused {nameof(
_minIndexInclusive
)} to overflow.");
390
return iterator.TryGetElementAt(
_minIndexInclusive
+ index, out found);
395
if (SkipBefore(
_minIndexInclusive
+ index, en) && en.MoveNext())
413
return iterator.TryGetElementAt(
_minIndexInclusive
, out found);
433
count >=
_minIndexInclusive
)
520
private bool SkipBeforeFirst(IEnumerator<TSource> en) => SkipBefore(
_minIndexInclusive
, en);