从概念上讲,我想完成以下操作,但却无法理解如何在C#中正确编码:
SomeMethod { // Member of AClass{}
DoSomething;
Start WorkerMethod() from BClass in another thread;
DoSomethingElse;
}
然后,当WorkerMethod()完成时,运行:
void SomeOtherMethod() // Also member of AClass{}
{ ... }
任何人都可以举一个例子吗?