public void OnStackOverflowed(object source, StackEventArgs e)
 {
     for (int i = 0; i < e.Stack.StackItems; i++)
     {
         Console.WriteLine("Boom, boom, boom. Let me hear you say wayo. Wayo!!");
     }
 }
Ejemplo n.º 2
0
 public void OnStackOverflowed(object source, StackEventArgs e)
 {
     Console.WriteLine($"Alert! Alert! The stack has overflowed at {e.Stack.StackItems}. Run for your lives!!");
 }