4 points · by Floopsy · 14y ago · 2 comments
I do realize Visual Studio creates Events for you, but I prefer to really understand something before using it. So I have been trying to comprehend the practical application of events.
As I mentioned, there are several websites that I had read which provided "simplified" examples, but even those lead me to think, "I see what this person is doing, but I still don't understand why this is being done using events."
Any easy to understand examples using an event in a practical manner that you can recommend?
Thanks for your help!
Delegate == singlecast. Meaning it can only point to one function at one time. Calling the delegate calls the assigned function.
Event == multicast. Meaning an event is essentially as list of delegates. When the event is fired, each delegate is called synchronously in the order they were added.
That is the functional difference. Hope that helps.