Ejemplo n.º 1
0
        public void AddEvent(EventRow @event)
        {
            if (@event == null)
            {
                throw new ArgumentNullException(nameof(@event));
            }

            if (@event.Id == null || this.events.ContainsKey(@event.Id))
            {
                return;
            }

            this.events.Add(@event.Id, @event);
        }
Ejemplo n.º 2
0
 public static bool IsNullOrNone(this EventRow self)
 => self == null || self == EventRow.None;