Property descriptor made visible on the reflected class by lostmsu · Pull Request #1512 · pythonnet/pythonnet

What does this implement/fix? Explain your changes.

Assuming

class C
{
  public int Prop { get; set; }
}

and Python code using it:

inst = C()
print(inst.Prop)
print(C.Prop)

The second print call would fail prior to this change, because accessing C.Prop was explicitly denied.

After this change C.Prop will return a Python property descriptor for Prop property, and inst.Prop will behave as before.

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
  • Add yourself to AUTHORS
  • Updated the CHANGELOG