How to stop C# console applications from closing automatically? [duplicate]

Console.ReadLine();

or

Console.ReadKey();

ReadLine() waits for , ReadKey() waits for any key (except for modifier keys).

Edit: stole the key symbol from Darin.

Leave a Comment