c# 的问题,help me Thread.CurrentThread.Abort();如果是在void Main中直接用return;即可... 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 static void Main(string[] args) { bool run = true; while (run) { Console.WriteLine("set run to false can exit the ConsoleApplication."); } } 1,run the main until end of main. 2,kill the process of the Console Application. Environment.Exit(0);//退出码,一般填0就可以了 谢谢vwxyzh,Environment.Exit(0);能够退出控制台程序,而且不需要捕获异常!! 在主函数Main()中return就会退出程序了.在子函数中,使用Thread.CurrentThread.Abort(); VS2010的项目如何在VS2005中打开 请问SqlParameter.SourceColumn属性,这里怎么解释? 关于转换 socket异步通讯的疑问. 如何将PD表中的name和code同时显示出来? 简单问题 C#中如何将所有图片文件转换为Jpeg 请问如何隐藏datagrid中的某一行 SQL语句问题 在C#中警告框的命令是 --?(除了messagebox.show(),还有没有其他?) 请教各位一个小问题! 怎么以二进制流的形式从一个大文件中读取100个字节的内容写到另外一个文件中去
{
bool run = true; while (run)
{
Console.WriteLine("set run to false can exit the ConsoleApplication.");
}
} 1,run the main until end of main.
2,kill the process of the Console Application.
在子函数中,使用Thread.CurrentThread.Abort();