DataStructuresCSharp/Datastructures/Stack/StackNode.cs

16 lines
385 B
C#
Raw Permalink Normal View History

2022-04-01 21:02:39 +00:00
using C_.Datastructures.Generic;
namespace C_.Datastructures.Stack
2022-03-26 22:31:47 +00:00
{
internal class StackNode<T> : UndirectedNode<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
};
}
}
}