1 write to _appendCount
System.Linq (1)
System\Linq\AppendPrepend.cs (1)
188
_appendCount
= appendCount;
9 references to _appendCount
System.Linq (9)
System\Linq\AppendPrepend.cs (4)
191
private protected override Iterator<TSource> Clone() => new AppendPrependN<TSource>(_source, _prepended, _appended, _prependCount,
_appendCount
);
223
_enumerator = ((IEnumerable<TSource>)_appended.ToArray(
_appendCount
)).GetEnumerator();
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
)];
210
TSource[] result = builder.ToArray(
_appendCount
);
266
_appended?.FillReversed(SetCountAndGetSpan(list, list.Count +
_appendCount
));
276
return count == -1 ? -1 : count +
_appendCount
+ _prependCount;
279
return !onlyIfCheap || _source is ICollection<TSource> ? _source.Count() +
_appendCount
+ _prependCount : -1;