| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Can you please provide an example of how this can be used? Even better if it is a real-world usage example. |
Sorry, something went wrong.
@microsoft-github-policy-service agree
Revert unintentional changes
|
|
||
| <PropertyGroup> | ||
| <TargetFrameworks>net472;net6.0</TargetFrameworks> | ||
| <RollForward>LatestMajor</RollForward> |
There was a problem hiding this comment.
This allows anyone that has recent versions of .net to run these tests. I can revert but I think its usefull, otherwise one needs to install .net6 which is already deprecated
Sorry, something went wrong.
There was a problem hiding this comment.
I think this should be conditioned on not running in CI
Sorry, something went wrong.
There was a problem hiding this comment.
Is there any config/env var which I can check?
Sorry, something went wrong.
Added a test. |
Sorry, something went wrong.
|
|
||
| <PropertyGroup> | ||
| <TargetFrameworks>net472;net6.0</TargetFrameworks> | ||
| <RollForward>LatestMajor</RollForward> |
There was a problem hiding this comment.
I think this should be conditioned on not running in CI
Sorry, something went wrong.
| /// </remarks> | ||
| public static PyObject FromManagedObject(object ob) | ||
| public static PyObject FromManagedObject(object ob, Type? type = null) | ||
| { |
There was a problem hiding this comment.
We need a use case and a test for this change as well.
Also, you have to add a separate overload because AFAIK adding default arguments breaks binary compatibility (e.g. libs compiled prior to this change will fail with MissingMethodException when they'll try to call the original method)
Sorry, something went wrong.
…oaompneves/pythonnet into support-specific-type-encoding * 'support-specific-type-encoding' of https://github.com/joaompneves/pythonnet: Update CHANGELOG.md Update CHANGELOG.md Update CHANGELOG.md
| Back | FazBrowse Home | New Git URL |
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.