可能重复:
Is there an actual difference in the 2 different ways of attaching event handlers in C#?连接事件处理程序的这两种语法之间有什么区别?
我已经看到了很多代码,看起来像这样:
foo.Drop += new DragEventHandler(fooHandler);
但在过去,我一直完成此操作:
foo.Drop += fooHandler;
这两种语法是否有区别?如果是这样,那么这样做有什么好处吗?
可能重复[在C#中附加事件处理程序的两种不同方式有实际区别?](http://stackoverflow.com/questions/214346/is-there-an-actual -disference-in-the-2-different-ways-of-attach-event-handlers),[事件与委托处理程序和没有?的区别是什么?](http://stackoverflow.com/questions/119160/什么是差异之间的事件与委托处理程序和那些没有),[在C#中附加\分离事件处理程序的不同方式之间的区别](http://stackoverflow.com/questions/4360451 /) – 2011-05-10 13:45:30
绝对是重复的。投票结束自己。 – 2011-05-10 13:52:37