System::Runtime::InteropServices::Marshal::GetDelegateForFunctionPointer method
Marshal::GetDelegateForFunctionPointer method
Converts an unmanaged function pointer to a delegate of a specified type.
template<typename TDelegate> static TDelegate System::Runtime::InteropServices::Marshal::GetDelegateForFunctionPointer(IntPtr ptr)
| Parameter | Description |
|---|---|
| TDelegate | The type of the delegate to return. |
| Parameter | Type | Description |
|---|---|---|
| ptr | IntPtr | The unmanaged function pointer to convert. |
ReturnValue
A instance of the specified delegate type.
Remarks
An rough stub for future implementation
See Also
- Class Marshal
- Namespace System::Runtime::InteropServices
- Library Aspose.PDF for C++