Class Event
- Namespace
- MonkeyLoader.Events
- Assembly
- MonkeyLoader.dll
Marks the base for all event data classes.
Also contains static helper methods.
public abstract class Event
- Inheritance
-
Event
- Derived
- Inherited Members
Methods
GetDispatchableEventTypes(Type)
Enumerates all Types in the given Event Type's hierarchy which events should be dispatched for.
public static IEnumerable<Type> GetDispatchableEventTypes(Type eventType)
Parameters
Returns
- IEnumerable<Type>
The concrete
eventType
and any dispatchable base Types.
IsAsyncEvent(Type)
Determines whether the given Event Type is an AsyncEvent.
public static bool IsAsyncEvent(Type eventType)
Parameters
Returns
- bool
true
if it is an AsyncEvent; otherwise,false
.
IsCancelable(Type)
public static bool IsCancelable(Type eventType)
Parameters
Returns
- bool
true
if it is cancelable; otherwise,false
.
IsCancelableAsyncEvent(Type)
Determines whether the given Event Type is a CancelableAsyncEvent.
public static bool IsCancelableAsyncEvent(Type eventType)
Parameters
Returns
- bool
true
if it is a CancelableAsyncEvent; otherwise,false
.
IsCancelableSyncEvent(Type)
Determines whether the given Event Type is a CancelableSyncEvent.
public static bool IsCancelableSyncEvent(Type eventType)
Parameters
Returns
- bool
true
if it is a CancelableSyncEvent; otherwise,false
.
IsEvent(Type)
public static bool IsEvent(Type type)
Parameters
Returns
IsSyncEvent(Type)
public static bool IsSyncEvent(Type eventType)