Created QueueNode

This commit is contained in:
Luke Else 2022-03-31 21:36:43 +01:00
parent bff4abff01
commit 1738ef0e5a

View File

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace C_.Datastructures.Nodes
{
internal class QueueNode<T> : Node<T, QueueNode<T>>
{
public static QueueNode<T> Create(T? value, QueueNode<T>? next)
{
return new QueueNode<T>
{
Value = value,
Next = next
};
}
}
}