111,132
社区成员
发帖
与我相关
我的任务
分享namespace ConsoleApplication4
{
class Program
{
static void Main(string[] args)
{
Byebye(Byebye(Byebye(Byebye(Byebye(null)))));
}
static object Byebye(object byebye)
{
if (byebye == null)
{
Console.WriteLine("Bye bye !");
Environment.Exit(0); //0代表正常退出,非0代表某种错误的退出
}
return null;
}
}
}
Process.GetCurrentProcess().Kill();