Thursday, June 02, 2005

Events and delegates in .NET

In .NET events and delegates both seem to behave almost identically. Actually both of them are closely related. Event is just a added modifier on a delegate.

Another imp. difference is that invoking an event can only be done from within the class that declared the event, whereas a delegate field can be invoked by whoever has access to it.

For more details check out:
http://blog.monstuff.com/archives/000040.html

No comments:

Post a Comment