By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,023 Members | 1,297 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,023 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Feb 13 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
>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

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Feb 13 '07 #2

P: n/a
Thank you very much!
herbert
Feb 14 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.