Title: Fixed accessing partially overriden properties from Python by lostmsu · Pull Request #1650 · pythonnet/pythonnet · GitHub
Open Graph Title: Fixed accessing partially overriden properties from Python by lostmsu · Pull Request #1650 · pythonnet/pythonnet
X Title: Fixed accessing partially overriden properties from Python by lostmsu · Pull Request #1650 · pythonnet/pythonnet
Description: What does this implement/fix? Explain your changes. .NET PropertyInfo.GetMethod would not return base non-overridden accessor for a partially overridden property (e.g. only setter overridden) Because of that when constructing PropertyObject we scan base classes to find base accessor (if any). Does this close any currently open issues? fixes #1455 Any other comments? This might have performance implications due to replacement of PropertyInfo.GetValue with getter.Invoke (not tested) Also in the change No need to serialize accessors - they can be reconstructed from the PropertyInfo Checklist Check all those that are applicable and complete. Make sure to include one or more tests for your change
Open Graph Description: What does this implement/fix? Explain your changes. .NET PropertyInfo.GetMethod would not return base non-overridden accessor for a partially overridden property (e.g. only setter overridden) Becau...
X Description: What does this implement/fix? Explain your changes. .NET PropertyInfo.GetMethod would not return base non-overridden accessor for a partially overridden property (e.g. only setter overridden) Becau...
Opengraph URL: https://github.com/pythonnet/pythonnet/pull/1650
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:31a5d396-cef1-2b39-1af2-2ccd97df0bd9 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E0A4:2CECE6:18CF384:22A8D64:6970DD3B |
| html-safe-nonce | 0bb981270035870964a75b6a703a7ddbdbcca57ef5352a46bf3c71a3a31e134d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEE0OjJDRUNFNjoxOENGMzg0OjIyQThENjQ6Njk3MEREM0IiLCJ2aXNpdG9yX2lkIjoiNzk3NzAxODI0MDY2MTUxMTQ4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a28bf653a6212212a221071d2de95bfccb28e850ebaadd0c48c1b6971de48058 |
| hovercard-subject-tag | pull_request:811144639 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/1650/files |
| twitter:image | https://avatars.githubusercontent.com/u/239520?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/239520?s=400&v=4 |
| og:image:alt | What does this implement/fix? Explain your changes. .NET PropertyInfo.GetMethod would not return base non-overridden accessor for a partially overridden property (e.g. only setter overridden) Becau... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9203e7efc62065329c3b7015a1e6d16fc14bce440abec7b0d3cbe9e4fb1e2e4 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | eb3c92b74ae48a78cffd8700b8eb5f60bad61528 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width