Bilal Ashraf Bilal Ashraf - 1 month ago 6
C# Question

Console window disappear immediately

Console window is not stable in visual studio using c#.

ReadLine()
is not working also. window disappear immediately and I can not see results.

Answer

You need to add the following line after your code:

Console.ReadKey();

This will prevent the console from executing the next line until you press any key. In your case, it will simply finish running the code.

Comments