-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support void* to UIntPtr parameter conversion for Invoked method #73748
Conversation
Tagging subscribers to this area: @dotnet/area-system-reflection Issue DetailsThere automatic type conversion takes place from Pointer (*) types to IntPtr but not for UIntPtr (throws Fixes #7430
|
src/libraries/System.Private.CoreLib/src/System/Reflection/InvokeUtils.cs
Outdated
Show resolved
Hide resolved
Also, add the handling of this case to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM modulo feedback
src/coreclr/nativeaot/System.Private.CoreLib/src/System/InvokeUtils.cs
Outdated
Show resolved
Hide resolved
src/coreclr/nativeaot/System.Private.CoreLib/src/System/InvokeUtils.cs
Outdated
Show resolved
Hide resolved
src/coreclr/nativeaot/System.Private.CoreLib/src/System/InvokeUtils.cs
Outdated
Show resolved
Hide resolved
src/coreclr/nativeaot/System.Private.CoreLib/src/System/InvokeUtils.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Reflection/InvokeUtils.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Reflection/InvokeUtils.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Reflection/InvokeUtils.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Reflection/InvokeUtils.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Reflection/InvokeUtils.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
There automatic type conversion takes place from Pointer (*) types to IntPtr but not for UIntPtr (throws
NotSupportedException
). Whenever possible it should be able to convert to UintPtr tooFixes #7430