摘要:
TreadStart委托仅仅指向无参数且无返回值的方法。 如果新线程上运行带参数的方法,那么需要用到ParameterizedThreadStart委托, ParameterizedThreadStart定义:public delegate void ParameterizedThreadStart 阅读全文
摘要:
Thread th=new Thread(Test)和 Thread th=new Thread(ThreadStart(Test))有什么区别? 其中: Void Test() { //xxxxxx } 两者没有区别,前者是C#的语法,后者是.Net的语法,编译器会自动把前者转换成后者。 Thre 阅读全文