Class GenericEvent
A collection of IGenericAction<TParam> instances which can be added to or removed from.
public class GenericEvent
- Inheritance
-
GenericEvent
- Inherited Members
Operators
operator +(GenericEvent?, IGenericAction<Entity>)
Adds an IGenericAction<TParam> to this event instance
public static GenericEvent? operator +(GenericEvent? left, IGenericAction<Entity> right)
Parameters
left
GenericEventThe event collection to add to.
right
IGenericAction<Entity>The event to add
Returns
- GenericEvent
The event itself. When
left
is null, the return value is also null.
operator -(GenericEvent?, IGenericAction<Entity>)
Unsubscribes an IGenericAction<TParam> to this event instance
public static GenericEvent? operator -(GenericEvent? left, IGenericAction<Entity> right)
Parameters
left
GenericEventThe event collection to unsubscribe from.
right
IGenericAction<Entity>The event to unsubscribe
Returns
- GenericEvent
The event itself. When
left
is null, the return value is also null.