static void DoAction(int action) { switch (action) { case 1: Output.Clear(); ListExample.Run(); break; case 2: Output.Clear(); DequeExample.Run(); break; case 3: Output.Clear(); TreeExample.Run(); break; case 4: Output.Clear(); MyCollectionExample.Run(); break; case 1337: Experiment(); break; case 0: break; default: Output.Error("Неизвестная команда\n"); break; } }