Пример #1
0
 public void Print()
 {
     if (headNode != null)
     {
         headNode.PrintList();
     }
 }
Пример #2
0
 public void PrintList()
 {
     Console.Write("|" + data + "|" + "->");
     if (next != null)
     {
         next.PrintList();
     }
     Console.WriteLine();
 }