I need to restart the app Console when the user press "R".
I have this
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...
}
thanks
I don't think you really need restart whole app. Just run required method(s) after pressing R. No need to restart.
Everybody is over-thinking this. Try something like this: