I usually use one of them:
Console.ReadKey(true); //You might want to put this in an infinite loop new AutoResetEvent(false).WaitOne();
In VS, you can also run ( Ctrl + F5 ) a program (as opposed to working in debugging), and it will add a system pause after completion of its completion.
I would say that WaitOne just works (& not debugging) the program - these are your non-hacker options.
If you want to debug, maybe set a breakpoint at the last } .
source share