C# 向线程传递参数 的一种优雅写法
Review 同事的代码,发现一个向线程传参的优雅的写法:
private void threadFunction(object param1, object param2, object param3); ThreadStart starter = delegate { threadFunction(param1, param2, param3); }; new Thread(starter).Start();
Review 同事的代码,发现一个向线程传参的优雅的写法:
private void threadFunction(object param1, object param2, object param3); ThreadStart starter = delegate { threadFunction(param1, param2, param3); }; new Thread(starter).Start();