I am just getting started with visual studio and c#. When i run the code the console exits right away.
Lets say I have the following code :
using System;
class Program
{
static void Main()
{
Console.WriteLine("Hello world");
}
}
I wont have the time to see the results, because the console closes so quickly after running. In a tutorial I am watching (which is an older version of visual studio) The guy is able to see his results. In his screen it shows : Press any key to continue and THEN it closes. Not right away. How can I configure my visual studio to do this?
I can solve this by using Console.Readline();
is there any other way?