When I execute my program in Visual Studio (just a simple hello world app) it terminates and closes the console window immediately, rather than waiting for me to close it ma
While testing Console.ReadKey() is nice to have. Here's an example:
namespace Foo
{
class Program
{
static void Main(string[] args)
{
Console.Write("The Console will close when it reads a key-input. "+
"Press a key to close");
Console.ReadKey();
}
}
}