Table of Contents

Struct EventHandlerReference<TEventHandler>

Namespace
SampSharp.OpenMp.Core.Api
Assembly
SampSharp.OpenMp.Core.dll

Represents a reference to a IEventHandler<TEventHandler>.

public readonly struct EventHandlerReference<TEventHandler> where TEventHandler : class

Type Parameters

TEventHandler

The 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()