Updated LinkedListNode to use new Node Type
This commit is contained in:
parent
ea5d5a73ed
commit
3d5f1cfbc1
@ -6,11 +6,8 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace C_.Datastructures.Nodes
|
namespace C_.Datastructures.Nodes
|
||||||
{
|
{
|
||||||
internal class LinkedListNode<T>
|
internal class LinkedListNode<T> : Node<T, LinkedListNode<T>>
|
||||||
{
|
{
|
||||||
public T? Value { get; set; } = default;
|
|
||||||
public LinkedListNode<T>? Next { get; set; } = default;
|
|
||||||
|
|
||||||
public static LinkedListNode<T> Create(T? value, LinkedListNode<T>? next)
|
public static LinkedListNode<T> Create(T? value, LinkedListNode<T>? next)
|
||||||
{
|
{
|
||||||
return new LinkedListNode<T>
|
return new LinkedListNode<T>
|
||||||
|
Loading…
Reference in New Issue
Block a user