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

Interface properties are not available on implementor classes that have been obfuscated #1181

Closed
@tracktownsoftware

Description

@tracktownsoftware

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 the assembly implement properties for ISomeInterface
  • Property names on classes have been obfuscated into gibberish, including property names that implement ISomeInterface
  • In C# I can get at ISomeInterface properties when the object is cast to type ISomeInterface
  • In python+pythonnet the ISomeInterface properties are not available. I do see property names that are obfuscated gibberish.

My 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.

If it helps I can make a simple obfuscated .Net Framework assembly showing this issue.

What 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No 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