Khushi
Khushi

Reputation: 1051

Automatically pause the console application in c#

I know I can use Console.ReadKey(); or Console.ReadLine(); to wait for the user input.

I am following some video tutorials from youTube

There I notice that when the tutor writes some code like

Console.WriteLine("This is a basic C# tutorial");

He gets a message saying Press any key to continue...

So, I want to know how to get the above message without writing any code for displaying the message.

Upvotes: 0

Views: 210

Answers (1)

user2577981
user2577981

Reputation: 96

Run without debugging sounds like what you want. Ctrl + F5.

Upvotes: 2

Related Questions