DataStructuresCSharp/C#/Datastructures/Nodes/StackNode.cs

22 lines
504 B
C#
Raw Normal View History

2022-03-26 22:31:47 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace C_.Datastructures.Nodes
{
internal class StackNode<T>
{
public T? Value { get; set; } = default;
public StackNode<T>? Next { get; set; } = default;
public static StackNode<T> Create(T? value, StackNode<T>? next)
{
return new StackNode<T>
{
Value = value,
Next = next
};
}
}
}