9 instantiations of SingleLinkedNode
System.Linq.AsyncEnumerable (9)
System\Linq\Append.cs (8)
137return new AppendPrependNAsyncIterator<TSource>(_source, null, new SingleLinkedNode<TSource>(_item).Add(item), prependCount: 0, appendCount: 2); 141return new AppendPrependNAsyncIterator<TSource>(_source, new SingleLinkedNode<TSource>(_item), new SingleLinkedNode<TSource>(item), prependCount: 1, appendCount: 1); 149return new AppendPrependNAsyncIterator<TSource>(_source, new SingleLinkedNode<TSource>(item), new SingleLinkedNode<TSource>(_item), prependCount: 1, appendCount: 1); 153return new AppendPrependNAsyncIterator<TSource>(_source, new SingleLinkedNode<TSource>(_item).Add(item), null, prependCount: 2, appendCount: 0); 240var appended = _appended is not null ? _appended.Add(item) : new SingleLinkedNode<TSource>(item); 246var prepended = _prepended is not null ? _prepended.Add(item) : new SingleLinkedNode<TSource>(item);
System\Linq\SingleLinkedNode.cs (1)
49public SingleLinkedNode<TSource> Add(TSource item) => new SingleLinkedNode<TSource>(this, item);
15 references to SingleLinkedNode
System.Linq.AsyncEnumerable (15)
System\Linq\Append.cs (7)
164private readonly SingleLinkedNode<TSource>? _prepended; 165private readonly SingleLinkedNode<TSource>? _appended; 169private SingleLinkedNode<TSource>? _node; 173public AppendPrependNAsyncIterator(IAsyncEnumerable<TSource> source, SingleLinkedNode<TSource>? prepended, SingleLinkedNode<TSource>? appended, int prependCount, int appendCount) 240var appended = _appended is not null ? _appended.Add(item) : new SingleLinkedNode<TSource>(item); 246var prepended = _prepended is not null ? _prepended.Add(item) : new SingleLinkedNode<TSource>(item);
System\Linq\SingleLinkedNode.cs (8)
28private SingleLinkedNode(SingleLinkedNode<TSource> linked, TSource item) 43public SingleLinkedNode<TSource>? Linked { get; } 49public SingleLinkedNode<TSource> Add(TSource item) => new SingleLinkedNode<TSource>(this, item); 57for (SingleLinkedNode<TSource>? node = this; node is not null; node = node.Linked) 72public SingleLinkedNode<TSource> GetNode(int index) 76SingleLinkedNode<TSource> node = this; 106for (SingleLinkedNode<TSource>? node = this; node is not null; node = node.Linked) 120for (SingleLinkedNode<TSource>? node = this; node is not null; node = node.Linked)