1 write to _source
System.Linq (1)
System\Linq\SkipTake.SpeedOpt.cs (1)
27
_source
= source;
18 references to _source
System.Linq (18)
System\Linq\SkipTake.SpeedOpt.cs (18)
33
new IListSkipTakeIterator<TSource>(
_source
, _minIndexInclusive, _maxIndexInclusive);
41
if ((uint)index <= (uint)(_maxIndexInclusive - _minIndexInclusive) && index <
_source
.Count - _minIndexInclusive)
43
_current =
_source
[_minIndexInclusive + index];
53
new IListSkipTakeSelectIterator<TSource, TResult>(
_source
, selector, _minIndexInclusive, _maxIndexInclusive);
58
return (uint)minIndex > (uint)_maxIndexInclusive ? null : new IListSkipTakeIterator<TSource>(
_source
, minIndex, _maxIndexInclusive);
64
return (uint)maxIndex >= (uint)_maxIndexInclusive ? this : new IListSkipTakeIterator<TSource>(
_source
, _minIndexInclusive, maxIndex);
69
if ((uint)index <= (uint)(_maxIndexInclusive - _minIndexInclusive) && index <
_source
.Count - _minIndexInclusive)
72
return
_source
[_minIndexInclusive + index];
81
if (
_source
.Count > _minIndexInclusive)
84
return
_source
[_minIndexInclusive];
93
int lastIndex =
_source
.Count - 1;
97
return
_source
[Math.Min(lastIndex, _maxIndexInclusive)];
108
int count =
_source
.Count;
129
Fill(
_source
, array, _minIndexInclusive);
140
Fill(
_source
, SetCountAndGetSpan(list, count), _minIndexInclusive);
147
Fill(
_source
, array.AsSpan(arrayIndex, Count), _minIndexInclusive);
161
IList<TSource> source =
_source
;
184
return
_source
[_minIndexInclusive + index];