Saturday, January 17, 2009

C# : events (part 2)

In my previous post http://technologyandme.blogspot.com/2008/09/c-events.html I had mentioned that whoever subscribes to event - it will not get collected b'coz the event's invocation list still holds reference to the subscriber. - This is known as "lapsed listener".
Check out http://msdn.microsoft.com/en-us/library/307hck25.aspx It's Dispose method disconnects from the event.

No comments: