Console window is not stable in visual studio using c#. ReadLine()
is not working also. window disappear immediately and I can not see results.
Asked
Active
Viewed 644 times
-3

Dmitry Bychenko
- 180,369
- 20
- 160
- 215

Bilal Ashraf
- 77
- 1
- 3
-
Can you include your code please? – KMoussa Oct 16 '16 at 23:15
1 Answers
2
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.

Ethan Ollins
- 108
- 1
- 7
-
`ReadLine()` will wait for `Enter`. `ReadKey()` will wait for any key at all. how does that help? – Noctis Oct 16 '16 at 23:08