Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个命令提示符应用程序,它正在执行一些操作,并在操作结束时向用户显示一些信息。因此,在用户完成阅读消息之前,不应退出命令提示符。命令提示符仅应在任何键盘按下事件时关闭。我怎样才能做到这一点 ?
Console.ReadKey();
将等待按键被按下。