Updated LinkedListNode to use new Node Type

This commit is contained in:
Luke Else 2022-03-31 21:24:55 +01:00
parent ea5d5a73ed
commit 3d5f1cfbc1

View File

@ -6,11 +6,8 @@ using System.Threading.Tasks;
namespace C_.Datastructures.Nodes
{
internal class LinkedListNode<T>
internal class LinkedListNode<T> : Node<T, LinkedListNode<T>>
{
public T? Value { get; set; } = default;
public LinkedListNode<T>? Next { get; set; } = default;
public static LinkedListNode<T> Create(T? value, LinkedListNode<T>? next)
{
return new LinkedListNode<T>