Class LazyLinkedListNode<T>
- Namespace
- Hi.Common.Collections
- Assembly
- HiGeom.dll
Node for LazyLinkedList<T>. Accessing Next on the tail node automatically materializes the next item from the list's source (if any).
public class LazyLinkedListNode<T>
Type Parameters
T
- Inheritance
-
LazyLinkedListNode<T>
- Inherited Members
- Extension Methods
Constructors
LazyLinkedListNode(T)
Initializes a new instance with the specified value.
public LazyLinkedListNode(T value)
Parameters
valueTThe value.
Properties
List
Gets the list that this node belongs to.
public LazyLinkedList<T> List { get; }
Property Value
Next
Gets the next node. When this is the last materialized node and the list has a pending source, accessing this property triggers on-demand materialization.
public LazyLinkedListNode<T> Next { get; }
Property Value
Previous
Gets the previous node in the list.
public LazyLinkedListNode<T> Previous { get; }
Property Value
Value
Gets or sets the value of this node.
public T Value { get; set; }
Property Value
- T
Methods
Enumerate()
Enumerates from this node forward to the end.
public IEnumerable<LazyLinkedListNode<T>> Enumerate()
Returns
EnumerateBack()
Enumerates backwards from this node to the head.
public IEnumerable<LazyLinkedListNode<T>> EnumerateBack()
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.