Thread thread = new Thread(new ParameterizedThreadStart(子线程函数));
thread.IsBackground = true;
thread.Start(“值”);
void 子线程函数(object str)
{
Console.WriteLine(str as string)
}
C# 开启子线程时传值 Thread,ParameterizedThreadStart
声明:
本文采用
BY-NC-SA
协议进行授权,如无注明均为原创,转载请注明转自
一颗大萝北
本文地址: C# 开启子线程时传值
本文地址: C# 开启子线程时传值