C#关闭程序

Environment.Exit(0)//可以退出单独开启的线程
原文地址:https://www.cnblogs.com/WP-WangPin/p/13904442.html