Class LlvmObjectRef
Base class for global LLVM "ref" handle types that require cleanup.
Namespace: Llvm.NET.Interop
Assembly: Llvm.NET.dll
Syntax
[SecurityCritical]
public abstract class LlvmObjectRef : SafeHandle, IDisposable, IEquatable<LlvmObjectRef>
Remarks
This is a SafeHandle and therefore does not require that containing types implement IDisposable. This implements a common equality check and therefore depends on the fact that such "handles" are just pointers in the native layer, so that it is valid to compare the pointers to different and unrelated types. This effectively establishes reference equality for the underlying native objects.
note
It is worth noting that the CLR marshaling will ALWAYS call the default constructor, then call SetHandle with the handle's value.
Constructors
LlvmObjectRef(Boolean) | Initializes a new instance of the LlvmObjectRef class with the specified value |
Properties
IsInvalid |
Methods
Equals(LlvmObjectRef) | |
Equals(Object) | |
GetHashCode() |
Operators
Equality(LlvmObjectRef, LlvmObjectRef) | Compares two object handles |
Inequality(LlvmObjectRef, LlvmObjectRef) | Compares two object handles for inequality |