Class LooselyLinkedListNode<T>
- Namespace
- NMF.Collections.Generic
- Assembly
- NMF.Collections.dll
Denotes a node in a loosely linked list
public class LooselyLinkedListNode<T>
Type Parameters
T
The type of elements
- Inheritance
-
LooselyLinkedListNode<T>
- Inherited Members
Constructors
LooselyLinkedListNode(T)
Creates a new instance
public LooselyLinkedListNode(T value)
Parameters
value
TThe value represented by this node
Properties
FromHere
Gets a collection with all values starting at the current node
public IEnumerable<T> FromHere { get; }
Property Value
- IEnumerable<T>
Next
Gets the next node
public LooselyLinkedListNode<T> Next { get; set; }
Property Value
Value
Gets the value of this node
public T Value { get; set; }
Property Value
- T
Methods
CreateDummyFor(LooselyLinkedListNode<T>)
Creates a dummy node for the given node
public static LooselyLinkedListNode<T> CreateDummyFor(LooselyLinkedListNode<T> node)
Parameters
node
LooselyLinkedListNode<T>The node for which to create a dummy node
Returns
- LooselyLinkedListNode<T>
A new node whose next pointer points to the given node
CutNext()
Removes the next element
public void CutNext()
Exceptions
- InvalidOperationException
Thrown if there is no next element