Title: Invalid method binding with specified .NET parameters · Issue #486 · pythonnet/pythonnet · GitHub
Open Graph Title: Invalid method binding with specified .NET parameters · Issue #486 · pythonnet/pythonnet
X Title: Invalid method binding with specified .NET parameters · Issue #486 · pythonnet/pythonnet
Description: Environment Pythonnet version: 2.3.0.0 Python version: 3.5.3 Operating System: Windows 10. Details Call to .NET method fails with passed arguments (Double.NegativeInfinity, Double.PositiveInfinity, Single.NegativeInfinity, Single.Positiv...
Open Graph Description: Environment Pythonnet version: 2.3.0.0 Python version: 3.5.3 Operating System: Windows 10. Details Call to .NET method fails with passed arguments (Double.NegativeInfinity, Double.PositiveInfinity,...
X Description: Environment Pythonnet version: 2.3.0.0 Python version: 3.5.3 Operating System: Windows 10. Details Call to .NET method fails with passed arguments (Double.NegativeInfinity, Double.PositiveInfinity,...
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/486
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Invalid method binding with specified .NET parameters","articleBody":"### Environment\r\n\r\n- Pythonnet version: 2.3.0.0\r\n- Python version: 3.5.3\r\n- Operating System: Windows 10.\r\n\r\n### Details\r\n\r\n- Call to .NET method fails with passed arguments (Double.NegativeInfinity, Double.PositiveInfinity, Single.NegativeInfinity, Single.PositiveInfinity).\r\nThere is an example, how you can reproduce this bug.\r\n\r\nC# code\r\n\r\n```csharp\r\nnamespace Bugs\r\n{\r\n public class InvalidMethodBinding\r\n {\r\n public static void WriteDouble(System.Double value)\r\n {\r\n System.Console.WriteLine(value);\r\n }\r\n }\r\n}\r\n```\r\nPython code:\r\n\r\n```python\r\nimport clr\r\n\r\nclr.AddReference('PathToDll')\r\n\r\nfrom System import Double\r\nfrom Bugs import *\r\n\r\nInvalidMethodBinding.WriteDouble(0.01)\r\nInvalidMethodBinding.WriteDouble(Double.NegativeInfinity)\r\n```\r\n\r\n- Traceback:\r\n\r\n```python\r\nTraceback (most recent call last):\r\n0.01\r\n File \"X\", line Y, in \u003cmodule\u003e\r\n Program.WriteDouble(Double.NegativeInfinity)\r\nTypeError: No method matches given arguments\r\n```\r\n","author":{"url":"https://github.com/Konstantin-Posudevskiy","@type":"Person","name":"Konstantin-Posudevskiy"},"datePublished":"2017-06-12T11:47:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/486/pythonnet/issues/486"}
| 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:3d0ba390-b82f-43bd-3b76-b66ae4c449a3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B924:250F5A:1F9F71A:28EB186:6974A4BB |
| html-safe-nonce | fc3813b9c9eb0cf41780008724ed882963703ba17b58493872def38960fcb316 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTI0OjI1MEY1QToxRjlGNzFBOjI4RUIxODY6Njk3NEE0QkIiLCJ2aXNpdG9yX2lkIjoiOTE1NTg0MDU1ODQzMjAzNjAyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d9ce0ccc4b8987c3c39d2d3789a2d0a8405833eee522f9b8d8a04feb819931d0 |
| hovercard-subject-tag | issue:235206603 |
| 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/486/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4eda8b880a232d99f0eeb51eaf4b5671f3b48dc7677384d13568daf32a5c65b6/pythonnet/pythonnet/issues/486 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4eda8b880a232d99f0eeb51eaf4b5671f3b48dc7677384d13568daf32a5c65b6/pythonnet/pythonnet/issues/486 |
| og:image:alt | Environment Pythonnet version: 2.3.0.0 Python version: 3.5.3 Operating System: Windows 10. Details Call to .NET method fails with passed arguments (Double.NegativeInfinity, Double.PositiveInfinity,... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Konstantin-Posudevskiy |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| 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 | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width