21 lines
488 B
C#
21 lines
488 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace C_.Datastructures.Nodes
|
|
{
|
|
internal class LinkedListNode<T> : Node<T, LinkedListNode<T>>
|
|
{//Inherits from Node
|
|
public static LinkedListNode<T> Create(T? value, LinkedListNode<T>? next)
|
|
{
|
|
return new LinkedListNode<T>
|
|
{
|
|
Value = value,
|
|
Next = next
|
|
};
|
|
}
|
|
}
|
|
}
|