I cant get Console.ReadLine or ReadKey to work properly

I recently started coding in c# and i need help for a problem i cant fix myself When ever i use the method Console.ReadKey or ReadLine it wont work
Heres a code i used to explain my problem

Console.WriteLine ("Hello World");
Console.ReadKey ();
Console.WriteLine ("GoodBye World");

I press play and all i get is
Hello World
Then when I press any key nothing happens I never get GoodBye World and I have to close the output window manually, Has anyone else had this problem and if so how did you fix it please help.

Tagged:

Answers

  • JamesLaveryJamesLavery GBBeta, University ✭✭✭✭✭
    What sort of application is this? I may be missing something here but console applications aren't relevant to mobile apps. While it is possible to write to the console, reading isn't relevant/possible in a mobile app.
  • NuttyThreadNuttyThread USMember

    Im using Xamarin Studio Community on a laptop to practice coding im not actually making anything special like a mobile game or anything.

Sign In or Register to comment.