打赏

C# 最简单的线程传递参数的写法

线程方法定义:
public void ThreadDo(string param)
{
}
 
线程方法调用:
Thread thread = new Thread(() => ThreadDo("param1"));
thread.IsBackground = true
 
thread.Start();
posted @ 2019-08-04 08:12  DanielXiaoyc  阅读(612)  评论(0编辑  收藏  举报