How can I keep a console open until CancelKeyPress event is fired?

前端 未结 5 551
失恋的感觉
失恋的感觉 2021-01-12 00:19

What is the best way to keep a console application open as long as the CancelKeyPress event has not been fired?

I would prefer to not use Console.Read or Console.Rea

5条回答
  •  -上瘾入骨i
    2021-01-12 00:59

    Simply run your program or codes without debugging, on your keyboard key in CTRL + f5 instead of F5(debugging).

提交回复
热议问题