How to stop C# console applications from closing automatically? [duplicate]

You can just compile (start debugging) your work with Ctrl+F5.

Try it. I always do it and the console shows me my results open on it. No additional code is needed.