1 write to _item
System.Linq (1)
System\Linq\AppendPrepend.cs (1)
97
_item
= item;
19 references to _item
System.Linq (19)
System\Linq\AppendPrepend.cs (7)
101
private protected override Iterator<TSource> Clone() => new AppendPrepend1Iterator<TSource>(_source,
_item
, _appending);
111
_current =
_item
;
128
_current =
_item
;
143
return new AppendPrependN<TSource>(_source, null, new SingleLinkedNode<TSource>(
_item
).Add(item), prependCount: 0, appendCount: 2);
147
return new AppendPrependN<TSource>(_source, new SingleLinkedNode<TSource>(
_item
), new SingleLinkedNode<TSource>(item), prependCount: 1, appendCount: 1);
155
return new AppendPrependN<TSource>(_source, new SingleLinkedNode<TSource>(item), new SingleLinkedNode<TSource>(
_item
), prependCount: 1, appendCount: 1);
159
return new AppendPrependN<TSource>(_source, new SingleLinkedNode<TSource>(
_item
).Add(item), null, prependCount: 2, appendCount: 0);
System\Linq\AppendPrepend.SpeedOpt.cs (12)
27
result[^1] =
_item
;
32
result[0] =
_item
;
42
builder.Add(
_item
);
46
builder.Add(
_item
);
73
array[0] =
_item
;
91
array[^1] =
_item
;
104
return new List<TSource>(1) {
_item
};
110
list.Add(
_item
);
116
list.Add(
_item
);
145
return
_item
;
160
return
_item
;
170
return
_item
;