{{category C#}} C# でアプリケーションを終了させるには System.Environment.Exit() を使う。 Environment.Exit(0); だそうです。