Title: Interface properties are not available on implementor classes that have been obfuscated · Issue #1181 · pythonnet/pythonnet · GitHub
Open Graph Title: Interface properties are not available on implementor classes that have been obfuscated · Issue #1181 · pythonnet/pythonnet
X Title: Interface properties are not available on implementor classes that have been obfuscated · Issue #1181 · pythonnet/pythonnet
Description: Environment Pythonnet version: 2.5.1 Python version: 3.7.7 Operating System: Windows 10 (10.0.1863 Build 18363) Details Describe what you were trying to get done. The .Net Framework assembly I'm using has been obfuscated. Most classes in...
Open Graph Description: Environment Pythonnet version: 2.5.1 Python version: 3.7.7 Operating System: Windows 10 (10.0.1863 Build 18363) Details Describe what you were trying to get done. The .Net Framework assembly I'm us...
X Description: Environment Pythonnet version: 2.5.1 Python version: 3.7.7 Operating System: Windows 10 (10.0.1863 Build 18363) Details Describe what you were trying to get done. The .Net Framework assembly I'...
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/1181
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Interface properties are not available on implementor classes that have been obfuscated","articleBody":"### Environment\r\n\r\n- Pythonnet version: 2.5.1\r\n- Python version: 3.7.7\r\n- Operating System: Windows 10 (10.0.1863 Build 18363)\r\n\r\n### Details\r\n\r\n- Describe what you were trying to get done.\r\n\r\nThe .Net Framework assembly I'm using has been obfuscated. \r\n- Most classes in the assembly implement properties for ISomeInterface\r\n- Property names on classes have been obfuscated into gibberish, including property names that implement ISomeInterface\r\n- In C# I can get at ISomeInterface properties when the object is cast to type ISomeInterface \r\n- In python+pythonnet the ISomeInterface properties are not available. I do see property names that are obfuscated gibberish.\r\n\r\nMy workaround in python+pythonnet is to call the get_{interfacepropertyname} and set_{interfacepropertyname} methods that are available. Pythonnet apparently sees that an interface is implemented.\r\n\r\nIf it helps I can make a simple obfuscated .Net Framework assembly showing this issue.\r\n\r\nWhat are your thoughts? I'm new to Python and maybe there is a way to cast an object to an interface that I'm not seeing. Thanks.","author":{"url":"https://github.com/tracktownsoftware","@type":"Person","name":"tracktownsoftware"},"datePublished":"2020-07-10T21:39:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/1181/pythonnet/issues/1181"}
| 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:821bb44c-69da-5b19-1eaf-745a0614f6cc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A35E:9E1F1:9D7CFC:DDC9A2:6970B630 |
| html-safe-nonce | 0af9b6d1f26d07de80978eac9501f38816dc23f754b9d018ecf49a5f8a763537 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzVFOjlFMUYxOjlEN0NGQzpEREM5QTI6Njk3MEI2MzAiLCJ2aXNpdG9yX2lkIjoiMTIyOTI2NDIxNTA1NDc5MjI0MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1bcf0fd68d0d9dff7ddf94c36024dcda769c14299a745b5242bcf80a4cf0af02 |
| hovercard-subject-tag | issue:655050306 |
| 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/1181/issue_layout |
| twitter:image | https://opengraph.githubassets.com/38f9f98778351d7dbf781da62b79006a04f5fb3bbbc4c62ed7cb12b5787d12e0/pythonnet/pythonnet/issues/1181 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/38f9f98778351d7dbf781da62b79006a04f5fb3bbbc4c62ed7cb12b5787d12e0/pythonnet/pythonnet/issues/1181 |
| og:image:alt | Environment Pythonnet version: 2.5.1 Python version: 3.7.7 Operating System: Windows 10 (10.0.1863 Build 18363) Details Describe what you were trying to get done. The .Net Framework assembly I'm us... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tracktownsoftware |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8e0be80373b724b033cdf8a7b1f78bf5fb6a5d7a2182a9a403aa30894606e390 |
| 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 | 84d9d5bf3b01412ea10f7c2429cbfc735ccce9ce |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width