private static void CheckEventInfoFound(object publisher, string eventName, EventInfo eventInfo) { if (eventInfo == null) { throw new PublisherEventNotFoundException(publisher.GetType(), eventName); } } }