//==========================定义个方法类
public class ThreadTest
{
public void FuncForDO(object o)
{
//转换对象 接收参数
ParamModel myparam = (ParamModel)o;
//这里执行具体函数操作
var a=myparam.a
}
}
//=====================定义个对象 传递参数
public class ParamModel
{
public string a{ set; get; }
}
//=======================调用:
ThreadTest test = new ThreadTest();
Thread thread1 = new Thread(new ParameterizedThreadStart(test.FuncForDO));
//组织参数
ParamModel pmodel = new ParamModel();
pmodel .a= "123";
//执行
thread1.Start(semodel);