using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace C_.Datastructures.Nodes { internal class StackNode { public T? Value { get; set; } = default; public StackNode? Next { get; set; } = default; public static StackNode Create(T? value, StackNode? next) { return new StackNode { Value = value, Next = next }; } } }