static void Main()
{
ConsoleMenu menu = new ConsoleMenu();
menu.AddItem("Бинарная сериализация", BinarySerializationDemo);
menu.AddItem("XML сериализация" , XmlSerializationDemo);
menu.AddItem("JSON сериализация" , JsonSerializationDemo);
menu.AddItem("Выход" , null);
do
{
menu.Show();
} while (!menu.ExitSelected);
}