Method EnumEvents
EnumEvents(Type, bool, BindingFlags)
Enumerates event information for the specified Type.
public static IEnumerable<EventInfo> EnumEvents(Type type, bool sort = false, BindingFlags bindingFlags = BindingFlags.Instance | BindingFlags.Public)
Parameters
typeTypeType which events are enumerated.
sortboolDefines whether to sort result events by name.
bindingFlagsBindingFlagsSpecifies flags that control the way in which the search for members is conducted.