Event4; // Noncompliant public void RegisterEventHandler(Action <object, EventArgs> handler) { Event1 += handler; //we register some event handlers var x = new Nested(); x.RegisterEventHandler(null); x.RaiseEvent(); }
Event4; // Noncompliant public void RegisterEventHandler(Action <object, EventArgs> handler) { Event1 += handler; //we register some event handlers var x = new Nested(); x.RegisterEventHandler(null); x.RaiseEvent(); }