-
Notifications
You must be signed in to change notification settings - Fork 748
Parameter resolution for integer types doesn't work in some cases #1523
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
Comments
Will that handle properly cases where both long\ulong overloads are available, e.g.:
|
lostmsu
added a commit
to losttech/pythonnet
that referenced
this issue
Aug 25, 2021
@rayrapetyan for this I strongly recommend to use manual overload resolution. E.g. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Details
Calling .NET methods from Python
Given a class like the following, any value you pass for address to the first MethodA will cause the exception underneath, it looks like because when needsResolution is true, the Converter will see the the value as an Int32 in GetTypeByAlias since in 3.7 there is no distinction between int and long anymore.
I have a PR almost ready with A solution to the issue, but it may not be the correct solution.
The text was updated successfully, but these errors were encountered: