This may be a stupid question, but why do I need to use Console.ReadLine() to prevent the console from closing immediately? for instance, this program:
namespace hello_world
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
Console.ReadLine();//without this, the console closes immediately
}
}
}
The console closes almost as soon as it opens. My book doesn't compensate with this, and the Udemy video I am watching doesn't compensate with it either. None of my books C# even addressed this. I am using visual studio community 2015.