GetAllEvents Method
Definition
- Namespace
- Cuemon.Extensions.Reflection
- Assemblies
- Cuemon.Extensions.Reflection.dll
GetAllEvents(Type, Action<MemberReflectionOptions>)
Retrieves a collection that represents all events defined on the specified source and its inheritance chain.
public static IEnumerable<EventInfo> GetAllEvents(this Type source, Action<MemberReflectionOptions> setup = null)
Parameters
sourceTypeThe Type to extend.
setupAction<MemberReflectionOptions>The MemberReflectionOptions which may be configured.
Returns
- IEnumerable<EventInfo>
An IEnumerable<T> that contains all EventInfo objects of the specified
sourceand its inheritance chain.