In VisualStudio 2008 and 2010, when I type, e.g.
this.Activated +=
and press Tab, VisualStudio automatically complements the line:
this.Activated += new EventHandler(MainWindow_Activated);
But the simpler, more laconic versions works too:
this.Activated += MainWindow_Activated;
Are these lines equivalent? new EventHandler is probably there for a reason…
Newer versions of C# infer the long version when you use the short version. This means even though you write less code, it still compiles to the longer version.