[]
        
(Showing Draft Content)

C1.Util.DX.CppObject.ToCallbackPtr

ToCallbackPtr Method

ToCallbackPtr<TCallback>(ICallbackable)

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

Declaration
public static IntPtr ToCallbackPtr<TCallback>(ICallbackable callback) where TCallback : ICallbackable
Parameters
Type Name Description
ICallbackable callback

The callback.

Returns
Type Description
IntPtr

A pointer to the unmanaged C++ object of the callback

Type Parameters
Name Description
TCallback

The type of the callback.