Skip to content

cannot get anymore int of enumerator class (alpha2) #1809

Description

@maxcapodi78

Environment

  • Pythonnet version: 3.0.0 Alpha 2
  • Python version: 3.9
  • Operating System: Windows
  • .NET Runtime:

Details

  • Describe what you were trying to get done.

    In v2.5.2 I'm able to get a C# Enumerator and get the int value. In alpha 2 it seems that the full enumerator class is returned but the int command is not working.

  • What commands did you run to trigger this issue? If you can provide a
    Minimal, Complete, and Verifiable example
    this will help us understand the issue.

    my_enum = csharp_object.GetObjType()
    int(my_enum) --> Failing now, working before
  • If there was a crash, please include the traceback here.
    cannot get int of object of class ComponentType (name of enumerator class)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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