Interface ICommonEvent<TSelf>
A commonly shared interface, implemented by all *Event structures
public interface ICommonEvent<TSelf> : ICommonEvent where TSelf : unmanaged, ICommonEvent<TSelf>
Type Parameters
TSelfThe type of event structure that implements this interface itself
- Inherited Members
Operators
explicit operator TSelf(in Event)
Converts a general Event to an event of type TSelf
public static abstract explicit operator TSelf(in Event @event)
Parameters
Returns
- TSelf
Remarks
This conversion usually requires that a certain part of the general Event structure given by event, which represents the event of type TSelf, to be copied from it.
Note: This can impact performance!
implicit operator Event(in TSelf)
Converts an event of type TSelf to a general Event
public static abstract implicit operator Event(in TSelf @event)
Parameters
eventTSelfThe event of type
TSelfto convert to a general Event
Returns
Remarks
This conversion usually requires the event to be copied into a new general Event structure. Note: This can impact performance!