CurtHagenlocher opened a new pull request, #492:
URL: https://github.com/apache/arrow-dotnet/pull/492

   ## What's Changed
   
   On the net462 and netstandard2.0 builds, 
`Marshal.GetDelegateForFunctionPointer<T>` returns the original managed 
delegate cast to T when the function pointer was created in-process from a 
delegate. If another library exported the callback with its own delegate type, 
the cast throws `InvalidCastException`.
   
   Add an internal `NativeDelegate.GetDelegateForFunctionPointer<T>` helper 
that uses the non-generic overload and wraps a delegate of another type by 
binding to its Invoke method, and use it at all call sites.
   
   Closes #491.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to