Node class is a generic class that will help to initialize each node of linked list.
public class Node
{
public Node(T value)
{
this.Value = value;
}
public T Value { get; set; }
public Node Next { get; set; }
public override string ToString()
{
return this.Value.ToString();
}
}
///...