1 write to _prependCount
System.Linq (1)
System\Linq\AppendPrepend.cs (1)
187
_prependCount
= prependCount;
8 references to _prependCount
System.Linq (8)
System\Linq\AppendPrepend.cs (3)
191
private protected override Iterator<TSource> Clone() => new AppendPrependN<TSource>(_source, _prepended, _appended,
_prependCount
, _appendCount);
237
return new AppendPrependN<TSource>(_source, _prepended, appended,
_prependCount
, _appendCount + 1);
243
return new AppendPrependN<TSource>(_source, prepended, _appended,
_prependCount
+ 1, _appendCount);
System\Linq\AppendPrepend.SpeedOpt.cs (5)
189
var result = new TSource[checked(
_prependCount
+ c.Count + _appendCount)];
192
c.CopyTo(result,
_prependCount
);
262
_prepended?.Fill(SetCountAndGetSpan(list,
_prependCount
));
276
return count == -1 ? -1 : count + _appendCount +
_prependCount
;
279
return !onlyIfCheap || _source is ICollection<TSource> ? _source.Count() + _appendCount +
_prependCount
: -1;