+ 3

Difference between Delegate and Event .

I saw many document on this topic, still I am unable to get a clear picture. please help me. Where we should use delegate rather than event vice versa.

20th Jan 2018, 3:54 AM
jitendra maurya
jitendra maurya - avatar
2 Answers
+ 1
Delegates and Events Both are related. Delegates is a function pointer which can able to store the address of any function with the same prototype. An event is a function handler which can handle or run the functions in the same prototype of its delegate. For handling events delegate is used. Here are some references you can use - http://www.dotnet-guide.com/how-are-delegates-different-from-events-in-dot-net.html http://www.dotnetfunda.com/interviews/show/4025/difference-between-event-and-delegate https://stackoverflow.com/questions/5393552/what-is-the-difference-between-delegate-and-event-in-c https://stackoverflow.com/questions/29155/what-are-the-differences-between-delegates-and-events
21st Jan 2018, 9:07 PM
Basu
Basu - avatar
0
Thanks basu
22nd Jan 2018, 1:50 AM
jitendra maurya
jitendra maurya - avatar