/// <summary> /// Adds the specified event handler. /// </summary> /// <param name="eventHandler">The event handler.</param> public void Add(TEventHandler eventHandler) { if (eventHandler is null) { return; } lock (_lockObject) { if (_list is null) { _list = new WeakEventList(); } _list.AddHandler(eventHandler); } }