Updated StackNode to use new Node Type

This commit is contained in:
Luke Else 2022-03-31 21:28:24 +01:00
parent c69c6ee0d3
commit 4fb6d4e15a

View File

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