If you want to pause your Visual Studio console application in the end, there is no need to insert something like
Console.ReadKey().
If you run your application with Ctrl-F5 (Run without Debug) then Visual Studio creates and runs a batch file that look something like that:
your_program.exe
@pause
So, command line will pause with "Press any key to continue..." message when your program is done and you will be able to examine the output.
No comments:
Post a Comment