📜  protected override void OnExiting(Object sender, EventArgs args) { base.OnExiting(sender, args); Environment.Exit(Environment.ExitCode); } - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:50.458000             🧑  作者: Mango

代码示例1
Put this code at the end of your Main() method:

Environment.Exit(Environment.ExitCode);