Provide `__int__` instance method on enum types to support `int(Enum.Member)` by lostmsu · Pull Request #1661 · pythonnet/pythonnet

Added EnumOps.__int__, that provides __int__ method for type dictionaries of reflected enum types.

Does this close any currently open issues?

implements #1585

Checklist

Check all those that are applicable and complete.

  • Make sure to include one or more tests for your change
  • If an enhancement PR, please create docs and at best an example
  • Updated the CHANGELOG