public void PrintList()
 {
     if (Head != null)
     {
         Head.Print();
     }
 }
Пример #2
0
        public void Print()
        {
            Console.Write($"|{Value}|->");

            if (Next != null)
            {
                Next.Print();
            }
        }