Мне нужно перезапустить консоль приложения, когда пользователь нажимает «R».
У меня есть это
Console.WriteLine(message, "Rebuild Log Files"
+ " Press Enter to finish, or R to restar the program...");
string restar = Console.ReadLine();
if(restar.ToUpper() == "R")
{
//here the code to restart the console...
}
спасибо