Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Cannot access indexer from .NET derived class #256

Closed
Assignees
den-run-ai
Labels
@Thraka

Description

@Thraka

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.

importclrclr.AddReference("PythonTest")importPythonTesta=PythonTest.IndexerBase()b=PythonTest.Indexer()print("count of items from base class: %i"%a.Count)print("count of items from derived class: %i"%b.Count)print("printing base class value: %s"%a[1])print("printing derived class value: %s"%b[1])#ERROR HERE

PythonTest Library.zip

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp