using System; using System.Linq; using System.Collections.Generic; using System.Windows.Forms; namespace NetworkDemo { static class Program { /// /// 应用程序的主入口点。 /// [MTAThread] static void Main() { try { Application.Run(new Form1()); } catch (Exception ex) { System.Diagnostics.Process.GetCurrentProcess().Kill(); } } } }