Ejemplo n.º 1
0
 private static void PrintStack(IStackReader <object> source)
 {
     for (int i = 0; !source.Empty(); ++i)
     {
         if (i > 0)
         {
             Console.Write(", ");
         }
         Console.Write(source.Pop());
     }
     Console.WriteLine();
 }
 private static void PrintStack(IStackReader <object> stack)
 {
     for (int count = 0; !stack.Empty(); ++count)
     {
         if (count > 0)
         {
             Console.Write(", ");
         }
         Console.Write(stack.Pop());
     }
     Console.WriteLine();
 }