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

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -