Thursday, September 11, 2008

Events versus delegates in C#

Finally somebody clearly defined the difference between C# events and multicast delegates.

We have seen that the event keyword is a modifier for a delegate declaration that allows it to be included in an interface, constraints it invocation from within the class that declares it, provides it with a pair of customizable accessors (add and remove) and forces the signature of the delegate (when used within the .NET framework).