0

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.

Khushi
  • 1,031
  • 4
  • 24
  • 48

1 Answers1

2

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

user2577981
  • 96
  • 1
  • 6
  • Keep in mind that this is only used when you are debugging it and wont be in what ever your final result that the user would see. – user2577981 Aug 02 '13 at 15:24