Method ToDelegate ToDelegate() Converts the current function pointer to a delegate of type TDelegate. Declaration public TDelegate? ToDelegate() Returns Type Description TDelegate A delegate of type TDelegate representing the target function. Implements ITypedFunctionPointer<TDelegate>.ToDelegate() Remarks The current instance may be a null pointer. If it is, then the resulting delegate will be null.