MtObject
Namespace: SharpPluginLoader.Core
public class MtObject : NativeWrapper
Inheritance Object → NativeWrapper → MtObject
Properties
Instance
The native pointer.
public nint Instance { get; set; }
Property Value
Constructors
MtObject(IntPtr)
public MtObject(nint instance)
Parameters
instance
IntPtr
MtObject()
public MtObject()
Methods
As<T>()
public T As<T>()
Type Parameters
T
Returns
T
Is(String)
public bool Is(string typeName)
Parameters
typeName
String
Returns
GetVirtualFunction(Int32)
Gets a virtual function from the vtable of this object.
public nint GetVirtualFunction(int index)
Parameters
index
Int32
The index of the virtual function in the vtable
Returns
IntPtr
The requested virtual function
GetProperties()
Gets the properties of this object.
public MtPropertyList GetProperties()
Returns
MtPropertyList
The property list containing all properties
GetDti()
Gets the DTI of this object.
public MtDti GetDti()
Returns
MtDti
The DTI, or null if there is no DTI
Destroy(Boolean)
Calls the destructor of this object.
public void Destroy(bool free)
Parameters
free
Boolean
Whether the destructor should deallocate the object or not