C#のフォームを持たないアプリでそれ自身をコードで終了する方法を教えてください。下記のようにメッセージボックスを表示した3秒後に自動的に終了したいです。static Timer t = new Timer();static void Main(){t.Tick += new System.EventHandler(timer1_Tick);t.Interval = 3000;t.Enabled = true;MessageBox.Show(\u0026quot;hogehoge\u0026quot;,\u0026quot;MyApp\u0026quot;);}static void timer1_Tick(object sender, EventArgs e){Application.Exit();t.Dispose();}