How serious it might be to NOT unsubscribe from the events in c#? Is it mandatory or advisable action?
This is the important part from the MSDN documentation that you should take into consideration
To prevent your event handler from being invoked when the event is raised, simply unsubscribe from the event. In order to prevent resource leaks, it is important to unsubscribe from events before you dispose of a subscriber object. Until you unsubscribe from an event, the multicast delegate that underlies the event in the publishing object has a reference to the delegate that encapsulates the subscriber's event handler. As long as the publishing object holds that reference, your subscriber object will not be garbage collected.
1.4m articles
1.4m replys
5 comments
57.0k users