【发布时间】:2014-04-04 22:51:35
【问题描述】:
奇怪的问题。 使用这些代码有什么区别?
class TestThread {
public void waitFunction() {
// Some code like this.UpdateProgress()
}
public void start() {
Thread thWaitingScraper = new Thread(waitFunction); // Method 1
Thread thWaitingScraper = new Thread(delegate() { waitFunction(); }); // Method 2
}
谢谢!
【问题讨论】:
标签: c# multithreading delegates