Struct EventHandlerReference<TEventHandler>
Represents a reference to a IEventHandler<TEventHandler>.
public readonly struct EventHandlerReference<TEventHandler> where TEventHandler : class
Type Parameters
TEventHandlerThe interface type of the event handler.
- Inherited Members
Properties
Handle
Gets the unmanaged handle of the event handler. Returns null if this event handler reference has not been created or has been freed.
public nint? Handle { get; }
Property Value
- nint?
Methods
Create()
Creates a new reference to the native event handler or increases its reference count.
public nint Create()
Returns
- nint
The created reference to the native event handler.
Free()
Decreases the reference count of the native event handler or frees its resources.
public void Free()