Custom events in VB.Net

By Roy Osherove In .Net Quotations

Markdown version

Historical article · Originally published January 9, 2005; technical details may be outdated.

I had a discussion going on with some folks regarding the fact that VB.Net does not have the equivalent of C# event accessors (the "add" and "remove" accessors you can declare inside an event declaration).

We thought this wasn't possible until Paul Vick blogged about the "Custom Event" declaration that will be available with VB.Net 2.0. That's really good news. Now you can handle various problems such as non-serializaed events in a safer manner, or use the EventHandlerList class to manage many events in your class. Very Nice.

More in .Net Quotations

All posts in .Net Quotations