Take the following C# class:
c1 { event EventHandler someEvent; }
If there are a lot of subscriptions to c1\'s someEven
c1
someEven
class c1 { event EventHandler someEvent; ResetSubscriptions() => someEvent = delegate { }; }
It is better to use delegate { } than null to avoid the null ref exception.
delegate { }
null