DataStructuresCSharp/C#/Datastructures/Queue/QueueNode.cs

17 lines
369 B
C#
Raw Normal View History

2022-04-01 21:02:39 +00:00
using C_.Datastructures.Generic;
namespace C_.Datastructures.Queue
2022-03-31 20:36:43 +00:00
{
internal class QueueNode<T> : UndirectedNode<T, QueueNode<T>>
2022-03-31 20:36:43 +00:00
{
public static QueueNode<T> Create(T? value, QueueNode<T>? next)
{
return new QueueNode<T>
{
Value = value,
Next = next
};
}
}
}