4 writes to _events
System.Windows.Forms.Design (4)
System\ComponentModel\Design\DesignerEventService.cs (4)
327_events ??= new EventHandlerList(); 350_events ??= new EventHandlerList(); 373_events ??= new EventHandlerList(); 396_events ??= new EventHandlerList();
28 references to _events
System.Windows.Forms.Design (28)
System\ComponentModel\Design\DesignerEventService.cs (28)
71(_events?[s_eventActiveDesignerChanged] as ActiveDesignerEventHandler)?.Invoke(this, new ActiveDesignerEventArgs(oldDesigner, host)); 129if (_events?[s_eventDesignerCreated] is DesignerEventHandler eh) 153if (_events?[s_eventDesignerDisposed] is DesignerEventHandler eh) 174if (_events?[s_eventSelectionChanged] is EventHandler eh) 324[MemberNotNull(nameof(_events))] 329_events[s_eventActiveDesignerChanged] = Delegate.Combine(_events[s_eventActiveDesignerChanged], value); 333if (_events is null) 338_events[s_eventActiveDesignerChanged] = Delegate.Remove(_events[s_eventActiveDesignerChanged], value); 347[MemberNotNull(nameof(_events))] 352_events[s_eventDesignerCreated] = Delegate.Combine(_events[s_eventDesignerCreated], value); 356if (_events is null) 361_events[s_eventDesignerCreated] = Delegate.Remove(_events[s_eventDesignerCreated], value); 370[MemberNotNull(nameof(_events))] 375_events[s_eventDesignerDisposed] = Delegate.Combine(_events[s_eventDesignerDisposed], value); 379if (_events is null) 384_events[s_eventDesignerDisposed] = Delegate.Remove(_events[s_eventDesignerDisposed], value); 393[MemberNotNull(nameof(_events))] 398_events[s_eventSelectionChanged] = Delegate.Combine(_events[s_eventSelectionChanged], value); 402if (_events is null) 407_events[s_eventSelectionChanged] = Delegate.Remove(_events[s_eventSelectionChanged], value);