What is the command to exit a Console application in C#?

前端 未结 4 919
梦如初夏
梦如初夏 2020-11-29 17:18

What is the command in C# for exit a Console Application?

4条回答
  •  清酒与你
    2020-11-29 17:28

    You can use Environment.Exit(0); and Application.Exit

    Environment.Exit(0) is cleaner.

提交回复
热议问题