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.

4
  • possible duplicate : stackoverflow.com/questions/1103402/… Commented Aug 2, 2013 at 15:10
  • It's probably a WriteLine of "press any key" followed by a ReadKey... Commented Aug 2, 2013 at 15:10
  • What you describe in the question does not match reality. Commented Aug 2, 2013 at 15:11
  • please watch the first video on the link provided to help understand my problem more clearly. Commented Aug 2, 2013 at 15:21

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

1 Comment

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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.