Table of Contents

Struct IIDProvider

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

This type represents a pointer to an unmanaged open.mp IIDProvider interface.

[OpenMpApi(new Type[] { })]
public readonly struct IIDProvider : IEquatable<IIDProvider>, IIDProvider.IManagedInterface, IUnmanagedInterface
Implements
Inherited Members

Constructors

IIDProvider(nint)

Initializes a new instance of the IIDProvider struct.

public IIDProvider(nint handle)

Parameters

handle nint

A pointer to the unmanaged interface.

Properties

Handle

Gets the handle to the unmanaged interface instance.

public nint Handle { get; }

Property Value

nint

HasValue

Gets a value indicating whether the pointer has a value.

public bool HasValue { get; }

Property Value

bool

Methods

Equals(IIDProvider)

public bool Equals(IIDProvider other)

Parameters

other IIDProvider

Returns

bool

Equals(object?)

public override bool Equals(object? other)

Parameters

other object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

GetID()

Gets the identifier of this unit.

public int GetID()

Returns

int

The identifier of the unit.

Operators

operator ==(IIDProvider, object?)

Determines whether the specified values are equal.

public static bool operator ==(IIDProvider lhs, object? rhs)

Parameters

lhs IIDProvider

The value on the left side of the operator.

rhs object

The value on the right side of the operator.

Returns

bool

true if the values are equal; otherwise, false.

operator !=(IIDProvider, object?)

Determines whether the specified values are not equal.

public static bool operator !=(IIDProvider lhs, object? rhs)

Parameters

lhs IIDProvider

The value on the left side of the operator.

rhs object

The value on the right side of the operator.

Returns

bool

true if the values are not equal; otherwise, false.