+ 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.
2 Respostas
+ 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
0
Thanks basu