Thread调用匿名函数,怎样在函数内结束THREAD?
Thread th= new Thread(delegate(){
结束
});
th.start();
有没有类似Thread.Sleep这种方法可以直接在匿名函数内部结束掉TH? --------------------编程问答-------------------- 跳出执行过程,线程也就结束了 --------------------编程问答-------------------- 是这样吗?
--------------------编程问答-------------------- 退出匿名函数即可
Thread th = null;
th = new Thread(delegate() { th.Abort(); });
th.Start();
补充:.NET技术 , C#