Пример #1
0
 protected Invoker(EventListBase <T> eventList)
 {
     if (eventList.invoker == null)
     {
         this.eventList = eventList;
     }
     else
     {
         throw new Exception($"Cannot create two invoker for one {nameof(EventListBase<T>)}");
     }
 }
Пример #2
0
 public Invoker(EventListBase <Action> eventList) : base(eventList)
 {
 }