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