[]
        
(Showing Draft Content)

C1.Util.DX.CppObject

CppObject Class

Root class for all Cpp interop object.

Implements
Namespace: C1.Util.DX
Assembly: C1.Win.C1DX.4.8.dll
Syntax
public class CppObject : DisposeBase, IDisposable

Constructors

Name Description
CppObject()

Initializes a new instance of the CppObject class.

CppObject(IntPtr)

Initializes a new instance of the CppObject class.

Properties

Name Description
NativePointer

Get a pointer to the underlying Cpp Object

Tag

Gets or sets a custom user tag object to associate with this instance..

Methods

Name Description
Dispose(bool)

Clean up any resources being used.

FromPointer<T>(IntPtr)

Instantiate a ComObject from a native pointer.

FromTemp(CppObject)

Initializes this instance with a pointer from a temporary object and set the pointer of the temporary
object to IntPtr.Zero.

FromTemp(IntPtr)

Initializes this instance with a pointer from a temporary object and set the pointer of the temporary
object to IntPtr.Zero.

NativePointerUpdated(IntPtr)

Method called when the NativePointer is updated.

NativePointerUpdating()

Method called when NativePointer is going to be update.

ToCallbackPtr<TCallback>(ICallbackable)

Return the unmanaged C++ pointer from a ICallbackable instance.

Operators

Name Description
explicit operator IntPtr(CppObject)

Performs an explicit conversion from CppObject to IntPtr.