Created QueueNode
This commit is contained in:
parent
bff4abff01
commit
1738ef0e5a
20
C#/Datastructures/Nodes/QueueNode.cs
Normal file
20
C#/Datastructures/Nodes/QueueNode.cs
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace C_.Datastructures.Nodes
|
||||||
|
{
|
||||||
|
internal class QueueNode<T> : Node<T, QueueNode<T>>
|
||||||
|
{
|
||||||
|
public static QueueNode<T> Create(T? value, QueueNode<T>? next)
|
||||||
|
{
|
||||||
|
return new QueueNode<T>
|
||||||
|
{
|
||||||
|
Value = value,
|
||||||
|
Next = next
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user