我看到以下声明:
ThreadStart myThreadDelegate = new ThreadStart(Work.DoWork);
Thread myThread = new Thread(myThreadDelegate);
myThread.Start();
它们可以简化为以下内容吗?
Thread myThread = new Thread(new ThreadStart(Work.DoWork));
myThread.Start();
如果是,第二种方法叫什么?每种方法的优缺点是什么?