Skip to content

Delegate vs Event in c#

Pooja Sharma

Asked May 23, 2010, 12:02 AM EDT1 answer
Share
LinkedInX
Hi,

What is the need of creating event when we can directly pass function/method name to the delegate and can invoke?

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    The biggest difference is that an event can only be invoked from within the class it was declared while a delegate can be passed an invoked from any location.
    Here is a good article explaining more on delegates vs events http://blog.monstuff.com/archives/000040.html
    0