Title: Cannot access indexer from .NET derived class · Issue #256 · pythonnet/pythonnet · GitHub
Open Graph Title: Cannot access indexer from .NET derived class · Issue #256 · pythonnet/pythonnet
X Title: Cannot access indexer from .NET derived class · Issue #256 · pythonnet/pythonnet
Description: If you create a .NET base class that has an indexer, and then create a .NET derived class, that derived class used in Python cannot access the indexer. You can access existing properties though just fine. import clr clr.AddReference("Pyt...
Open Graph Description: If you create a .NET base class that has an indexer, and then create a .NET derived class, that derived class used in Python cannot access the indexer. You can access existing properties though jus...
X Description: If you create a .NET base class that has an indexer, and then create a .NET derived class, that derived class used in Python cannot access the indexer. You can access existing properties though jus...
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/256
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cannot access indexer from .NET derived class","articleBody":"If you create a .NET base class that has an indexer, and then create a .NET derived class, that derived class used in Python cannot access the indexer. You can access existing properties though just fine.\n\n``` python\nimport clr\n\nclr.AddReference(\"PythonTest\")\n\nimport PythonTest\n\na = PythonTest.IndexerBase()\nb = PythonTest.Indexer()\n\nprint(\"count of items from base class: %i\" % a.Count)\nprint(\"count of items from derived class: %i\" % b.Count)\nprint(\"printing base class value: %s\" % a[1])\nprint(\"printing derived class value: %s\" % b[1]) #ERROR HERE\n```\n\n[PythonTest Library.zip](https://github.com/pythonnet/pythonnet/files/448914/PythonTest.Library.zip)\n","author":{"url":"https://github.com/Thraka","@type":"Person","name":"Thraka"},"datePublished":"2016-09-01T05:55:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":17},"url":"https://github.com/256/pythonnet/issues/256"}
| 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:f8c1b569-7f5e-1370-d5ca-ba60bf3cacc2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9E52:2736BD:140807A:1AC4820:697062AD |
| html-safe-nonce | 1e7f9166833094970cb016ac4ece1ef21c3da267ff3cb9d23923356e5aa7d149 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTUyOjI3MzZCRDoxNDA4MDdBOjFBQzQ4MjA6Njk3MDYyQUQiLCJ2aXNpdG9yX2lkIjoiNDAwMTUwODM3MDE2NTAzMTU5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 76390c9ff24440197de07e7da5e30f0886f88a2ddcf9c6a1fe6d8f07323d7c44 |
| hovercard-subject-tag | issue:174442474 |
| 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/256/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d10d6e3f69a31b369a234af2d2b32a536a3fc93e80ba4dfb621a7ecfd976afd6/pythonnet/pythonnet/issues/256 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d10d6e3f69a31b369a234af2d2b32a536a3fc93e80ba4dfb621a7ecfd976afd6/pythonnet/pythonnet/issues/256 |
| og:image:alt | If you create a .NET base class that has an indexer, and then create a .NET derived class, that derived class used in Python cannot access the indexer. You can access existing properties though jus... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Thraka |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2 |
| 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 | 7d6181066430cc06553c8396ca201e194ae33cb9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width