c# - Why does the ReadLine () method NOT pause for user input? -


i began study c#, ran problem. readline() method not pause user input. started c#, , works on other people's programs, have no idea why. using xamarin on mac.

here example code not work:

using system;  namespace learningc {     public class learningsharp     {         public static void main (string[] args)         {             console.writeline (console.readline ());         }     } } 

i found out solution. right click on project , select options. then, select general under run tab , check "pause console output" ("run on external console" must checked work.)


Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -