Updated StackNode to use new Node Type
This commit is contained in:
parent
c69c6ee0d3
commit
4fb6d4e15a
@ -5,10 +5,8 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace C_.Datastructures.Nodes
|
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)
|
public static StackNode<T> Create(T? value, StackNode<T>? next)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user