Title: Added `ToPythonAs()` extension method for explicit conversion using an arbitrary type by joaompneves · Pull Request #2419 · pythonnet/pythonnet · GitHub
Open Graph Title: Added `ToPythonAs()` extension method for explicit conversion using an arbitrary type by joaompneves · Pull Request #2419 · pythonnet/pythonnet
X Title: Added `ToPythonAs()` extension method for explicit conversion using an arbitrary type by joaompneves · Pull Request #2419 · pythonnet/pythonnet
Description: What does this implement/fix? Explain your changes. When you have an object that implements multiple interfaces in an explicit way, there's no easy way to specify which of the interface we want to encode, when the interface type is not known at build time. This PR allows that, by introducing an overload with and extra type parameter in the ToPythonAs method. ... Does this close any currently open issues? ... Any other comments? ... Checklist Check all those that are applicable and complete. Make sure to include one or more tests for your change If an enhancement PR, please create docs and at best an example Ensure you have signed the .NET Foundation CLA Add yourself to AUTHORS Updated the CHANGELOG
Open Graph Description: What does this implement/fix? Explain your changes. When you have an object that implements multiple interfaces in an explicit way, there's no easy way to specify which of the interface we want...
X Description: What does this implement/fix? Explain your changes. When you have an object that implements multiple interfaces in an explicit way, there's no easy way to specify which of the interface we ...
Opengraph URL: https://github.com/pythonnet/pythonnet/pull/2419
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:f3a4fcc7-5db7-2245-8508-a0ac335eaae5 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | D760:3383CF:21C69D3:2EE0913:69728F7F |
| html-safe-nonce | 3719b58a3d4497a8f230cfb3743de116b7d73cc0df41a583710a7ce81d3b0002 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzYwOjMzODNDRjoyMUM2OUQzOjJFRTA5MTM6Njk3MjhGN0YiLCJ2aXNpdG9yX2lkIjoiOTAxNTY4NzQzOTAzMTg5Nzk4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d1b5f0aeae4217b9679ebf1040769015c622aac1cc29d35bd19bfdedbfa7dbd4 |
| hovercard-subject-tag | pull_request:1974289259 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/pythonnet/pythonnet/pull/2419/checks |
| twitter:image | https://avatars.githubusercontent.com/u/693294?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/693294?s=400&v=4 |
| og:image:alt | What does this implement/fix? Explain your changes. When you have an object that implements multiple interfaces in an explicit way, there's no easy way to specify which of the interface we want... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | f55b89ef71fda443a25c469605964fe31f4313158c4238f900f8894d6f31ffa4 |
| 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 full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 69ed002f93fb5a101bb3ef79e8704a63acc02bd2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width