c# window instantly close

C#
System.Console.ReadLine();
Source

Also in C#: