Ejemplo n.º 1
0
 public void handle()
 {
     if (head != null)
     {
         Console.WriteLine($"{head}");
         head.handle();
     }
 }
Ejemplo n.º 2
0
        public void handle()
        {
            bool handled = doHandle();

            if (successor != null && !handled)
            {
                successor.handle();
            }
        }