2022-03-26 22:31:47 +00:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
namespace C_.Datastructures.Nodes
|
|
|
|
{
|
2022-03-31 20:28:24 +00:00
|
|
|
internal class StackNode<T> : Node<T, StackNode<T>>
|
2022-03-31 20:29:12 +00:00
|
|
|
{//Inherits from Node
|
2022-03-26 22:31:47 +00:00
|
|
|
public static StackNode<T> Create(T? value, StackNode<T>? next)
|
|
|
|
{
|
|
|
|
return new StackNode<T>
|
|
|
|
{
|
|
|
|
Value = value,
|
|
|
|
Next = next
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|