Class SubscribableBaseEventAttribute
- Namespace
- MonkeyLoader.Events
- Assembly
- MonkeyLoader.dll
Marks an Event-derived class as the base class of
the more derived instances dispatched by sources.
This causes handlers expecting a more derived event type to be subscribed to
sources for the marked class too; only being called when
the concrete dispatched event is compatible with what they expect.
public sealed class SubscribableBaseEventAttribute : EventAttribute
- Inheritance
-
SubscribableBaseEventAttribute
- Inherited Members
Remarks
This is primarily intended for sources dispatching different event classes that involve a generic parameter, to avoid having to exhaustively list them.