internal static EventInfo getEvent(Type type, string name) { return type.GetEvent(name, BindingFlags.Public | BindingFlags.Instance); }