Struct IExtension
This type represents a pointer to an unmanaged open.mp IExtension interface.
[OpenMpApi(new Type[] { })]
[OpenMpApiPartial]
public readonly struct IExtension : IEquatable<IExtension>, IUnmanagedInterface
- Implements
- Inherited Members
Constructors
IExtension(nint)
Initializes a new instance of the IExtension struct.
public IExtension(nint handle)
Parameters
handlenintA pointer to the unmanaged interface.
Properties
Handle
Gets the handle to the unmanaged interface instance.
public nint Handle { get; }
Property Value
HasValue
Gets a value indicating whether the pointer has a value.
public bool HasValue { get; }
Property Value
Methods
Equals(IExtension)
public bool Equals(IExtension other)
Parameters
otherIExtension
Returns
Equals(object?)
public override bool Equals(object? other)
Parameters
otherobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
Operators
operator ==(IExtension, object?)
Determines whether the specified values are equal.
public static bool operator ==(IExtension lhs, object? rhs)
Parameters
lhsIExtensionThe value on the left side of the operator.
rhsobjectThe value on the right side of the operator.
Returns
- bool
trueif the values are equal; otherwise,false.
operator !=(IExtension, object?)
Determines whether the specified values are not equal.
public static bool operator !=(IExtension lhs, object? rhs)
Parameters
lhsIExtensionThe value on the left side of the operator.
rhsobjectThe value on the right side of the operator.
Returns
- bool
trueif the values are not equal; otherwise,false.