Thread之ParameterizedThreadStart
TreadStart委托仅仅指向无参数且无返回值的方法。
如果新线程上运行带参数的方法,那么需要用到ParameterizedThreadStart委托,
ParameterizedThreadStart定义:public delegate void ParameterizedThreadStart(object obj);
一:要求只能有一个参数,且为object类型
二:无返回值
Thread th=new Thread(Test)和Thread th =new Thread(ParameterizedThreadStart(Test))一样。