Class LinkedList<T>.Node
- Namespace
- AlgorithmsSW.List
- Assembly
- AlgorithmsSW.dll
Represents a node in the LinkedList<T>.
public sealed record LinkedList<T>.Node : IEquatable<LinkedList<T>.Node>
- Inheritance
-
LinkedList<T>.Node
- Implements
- Inherited Members
- Extension Methods
Constructors
Node(T)
Represents a node in the LinkedList<T>.
public Node(T Item)
Parameters
Item
T
Fields
Item
The contents of this node.
public T Item
Field Value
- T
NextNode
The next node in the linked list. null if this is the last node.
public LinkedList<T>.Node? NextNode
Field Value
- LinkedList<T>.Node
Properties
HasNext
public bool HasNext { get; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.