111,098
社区成员




a.BeginInvoke(s=>
{
Action x = (Action)s.AsyncState;
x.EndInvoke(s);
},a);
AutoResetEvent evt = new AutoResetEvent(false);
Action a = () =>
{
while (true) {
if (evt.WaitOne())
{
break;
}
}
};
a.BeginInvoke(s =>
{
Action x = (Action)s.AsyncState;
x.EndInvoke(s);
}, a);
Console.ReadLine();
evt.Set();