DataStructuresCSharp/C#/Datastructures/Stack/StackNode.cs

16 lines
385 B
C#

using C_.Datastructures.Generic;
namespace C_.Datastructures.Stack
{
internal class StackNode<T> : UndirectedNode<T, StackNode<T>>
{//Inherits from Node
public static StackNode<T> Create(T? value, StackNode<T>? next)
{
return new StackNode<T>
{
Value = value,
Next = next
};
}
}
}