Class PlatformHandle
Represents a platform-specific handle.
public class PlatformHandle : IPlatformHandle, IEquatable<PlatformHandle>
- Inheritance
-
PlatformHandle
- Implements
- Inherited Members
Constructors
PlatformHandle(nint, string?)
Initializes a new instance of the PlatformHandle class.
public PlatformHandle(nint handle, string? descriptor)
Parameters
Properties
Handle
Gets the handle.
public nint Handle { get; }
Property Value
HandleDescriptor
Gets an optional string that describes what Handle represents.
public string? HandleDescriptor { get; }
Property Value
Methods
Equals(PlatformHandle?)
public bool Equals(PlatformHandle? other)
Parameters
other
PlatformHandle
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(PlatformHandle?, PlatformHandle?)
public static bool operator ==(PlatformHandle? left, PlatformHandle? right)
Parameters
left
PlatformHandleright
PlatformHandle
Returns
operator !=(PlatformHandle?, PlatformHandle?)
public static bool operator !=(PlatformHandle? left, PlatformHandle? right)
Parameters
left
PlatformHandleright
PlatformHandle