public static IEnumerable<EventInfo> GetRuntimeEvents (this Type type) { if (type == null) throw new ArgumentNullException ("type"); return type.GetEvents (AllMembersBindingFlags); }