Table of Contents

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

eventType Type

The concrete Event Type to dispatch.

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

eventType Type

The concrete Event Type to check.

Returns

bool

true if it is an AsyncEvent; otherwise, false.

IsCancelable(Type)

Determines whether the given Event Type is cancelable.

public static bool IsCancelable(Type eventType)

Parameters

eventType Type

The concrete Event Type to check.

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

eventType Type

The concrete Event Type to check.

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

eventType Type

The concrete Event Type to check.

Returns

bool

true if it is a CancelableSyncEvent; otherwise, false.

IsEvent(Type)

Determines whether the given Type is an Event.

public static bool IsEvent(Type type)

Parameters

type Type

The Type to check.

Returns

bool

true if it is an Event; otherwise, false.

IsSyncEvent(Type)

Determines whether the given Event Type is a SyncEvent.

public static bool IsSyncEvent(Type eventType)

Parameters

eventType Type

The concrete Event Type to check.

Returns

bool

true if it is a SyncEvent; otherwise, false.