System.Linq.Async by .NET Foundation and Contributors

<PackageReference Include="System.Linq.Async" Version="4.0.0-preview.8.build.9" />

.NET API 1,047,504 bytes

 SingleLinkedNode<TSource>

sealed class SingleLinkedNode<TSource>
An immutable node in a singly-linked list of items.
public TSource Item { get; }

The item held by this node.

public SingleLinkedNode<TSource> Linked { get; }

The next node in the singly-linked list.

public SingleLinkedNode(TSource item)

Constructs a tail node.

public SingleLinkedNode<TSource> Add(TSource item)

Creates a new node that holds the specified item and is linked to this node.

public int GetCount()

Gets the number of items in this and subsequent nodes by walking the linked list.

public IEnumerator<TSource> GetEnumerator(int count)

Gets an IEnumerator<T> that enumerates the items of this node's singly-linked list in reverse.

public SingleLinkedNode<TSource> GetNode(int index)

Gets the node at a logical index by walking the linked list.