Title: Selecting overloaded methods with unsigned integer argument fails · Issue #283 · pythonnet/pythonnet · GitHub
Open Graph Title: Selecting overloaded methods with unsigned integer argument fails · Issue #283 · pythonnet/pythonnet
X Title: Selecting overloaded methods with unsigned integer argument fails · Issue #283 · pythonnet/pythonnet
Description: When trying to invoke a .NET method with a unsigned integer argument, it fails with "No method matches given arguments", if there is another method signature with the same name. To reproduce, use the class: public class Class1 { public s...
Open Graph Description: When trying to invoke a .NET method with a unsigned integer argument, it fails with "No method matches given arguments", if there is another method signature with the same name. To reproduce, use t...
X Description: When trying to invoke a .NET method with a unsigned integer argument, it fails with "No method matches given arguments", if there is another method signature with the same name. To reprod...
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/283
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Selecting overloaded methods with unsigned integer argument fails","articleBody":"When trying to invoke a .NET method with a unsigned integer argument, it fails with \"No method matches given arguments\", if there is another method signature with the same name. To reproduce, use the class:\r\n\r\n```\r\npublic class Class1\r\n {\r\n public string MethodWithOverloading(UInt16 aParam1)\r\n {\r\n return string.Format(\"MethodWithOverloading(int {0})\", aParam1);\r\n }\r\n\r\n public string MethodWithOverloading(string aParam2)\r\n {\r\n return string.Format(\"MethodWithOverloading(string {0})\", aParam2);\r\n }\r\n\r\n public string MethodWithOverloading(UInt16 aParam1, string aParam2)\r\n {\r\n return string.Format(\"MethodWithOverloading(int {0}, string {1})\", aParam1, aParam2);\r\n }\r\n }\r\n\r\n```\r\nThen called from python with:\r\n\r\n```\r\nc = Class1()\r\nprint c.MethodWithOverloading('test')\r\nprint c.MethodWithOverloading(42)\r\nprint c.MethodWithOverloading(42, 'test')\r\n```\r\n\r\nline 2 works fine, but lines 3 and 4 fail with TypeError: No method matches given arguments (using 2.1.0)","author":{"url":"https://github.com/makalu79","@type":"Person","name":"makalu79"},"datePublished":"2016-11-04T13:05:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/283/pythonnet/issues/283"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6098ed6a-5377-9824-a7ef-e4a66f7e3d57 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C3F0:31BD28:21179EA:2E7574F:6970EB74 |
| html-safe-nonce | af8f67e1be9a80ac0029ebfa71a045de18445e48b96d9876460886e847a04c0a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDM0YwOjMxQkQyODoyMTE3OUVBOjJFNzU3NEY6Njk3MEVCNzQiLCJ2aXNpdG9yX2lkIjoiMTg4NTgzMDIwOTEyMjM5NzA0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6a68da4a7c82dbdfa33713c358bcb6b181cc6d959f934a80eeb037fbe971fb73 |
| hovercard-subject-tag | issue:187328387 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/pythonnet/pythonnet/283/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6f0c408f53b971ef98914b103e2d5768760f354ce14c896491a1daaf9eb88141/pythonnet/pythonnet/issues/283 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6f0c408f53b971ef98914b103e2d5768760f354ce14c896491a1daaf9eb88141/pythonnet/pythonnet/issues/283 |
| og:image:alt | When trying to invoke a .NET method with a unsigned integer argument, it fails with "No method matches given arguments", if there is another method signature with the same name. To reproduce, use t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | makalu79 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b6ca3cb96fa07d8a62b95d681f9dc8fffb49a43f4fea2a5bcac6d8f5107cbf4e |
| turbo-cache-control | no-preview |
| go-import | github.com/pythonnet/pythonnet git https://github.com/pythonnet/pythonnet.git |
| octolytics-dimension-user_id | 6050430 |
| octolytics-dimension-user_login | pythonnet |
| octolytics-dimension-repository_id | 14748123 |
| octolytics-dimension-repository_nwo | pythonnet/pythonnet |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14748123 |
| octolytics-dimension-repository_network_root_nwo | pythonnet/pythonnet |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d2448578278810c7bf94faa67651ef5adb1abfde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width