我有这个
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... }
谢谢