Thread thread = new Thread(new ParameterizedThreadStart(子线程函数));
thread.IsBackground = true;
thread.Start(“值”);

 void 子线程函数(object str)
{
  Console.WriteLine(str as string)
}

C# 开启子线程时传值  Thread,ParameterizedThreadStart

说点什么
支持Markdown语法
好耶,沙发还空着ヾ(≧▽≦*)o
Loading...