Delegate shortcut
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
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Serban Cosmin59 reputationPosted Oct 9, 2009, 10:07 PM EDT