日期:2014-05-18  浏览次数:20439 次

这个语句怎么理解?+=
workflowRuntime.WorkflowCompleted += delegate(object sender, WorkflowCompletedEventArgs e) {waitHandle.Set();}; 
这个语句怎么理解?+=和 {}谁先呀?

------解决方案--------------------
delegate 建立委托阿
WorkflowCompleted 先
------解决方案--------------------
delegate 建立委托阿 
WorkflowCompleted 就执行waitHandle.Set();

+= 是建立委托阿