Custom Events versus Multicast Delegates for events(VB.NET)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

What are the different features (in VB.NET) between a) Custom Events and b)
Multicast Delegates to raise events?

On the bottom line my class ad a) manages a list of handlers or ad b)
obtains a list of handlers (using GetInvocationList) and invokes them
one-by-one. So where is the difference?

eg are Custom Events the only way to raise an event asynchronously?

thanks herbert
 
What are the different features (in VB.NET) between a) Custom Events and b)
Multicast Delegates to raise events?

Well the event is backed by a (multicast) delegate, so the only real
difference is that you restrict access to it by using an event.
(Similar to the difference between a property and a public field).


Mattias
 
Back
Top