Delegate shortcut

Oct 9 2009 3:15 AM
In all the books and articles I read the delegate are assigned using the new operator: public delegate ... anUsufulDelegate (...); anUsufulDelegate doSomething; doSomething = new anUsufulDelegate(a function with a matching signature); But I can more easily write: doSomething = a function with a matching signature; Is the second version simply a shortcut for the one with the new operator and the type of the delegate ? A fast look with a disassembler seems to confirm this. Thanks Filippo

Answers (1)