My console applications on Visual Studio are closing automatically, therefore, I'd like to use something like C's system("PAUSE")
to "pause" the applications at the end of their execution. How can I achieve that?
Console.ReadLine();
or
Console.ReadKey();
ReadLine()
waits for ↩, ReadKey()
waits for any key (except for modifier keys).
Edit: stole the key symbol from Darin.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With