Replies: 1 comment
|
If your solution works for you - great. As far as I can see, you won't be able to set properties of the object encoded this way though. There is a feature request for the full support of DLR (which would include |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello :)
I want to call a C# method from Python returning a ExpandoObject - properties are added dynamic during runtime.
In Python I want to access those properties like object.property (this is possible in C# with the dynamic keyword and ExpandoObject).
Therfore I wrote a Codec which adds the properties to a PyObject:
With this codec I can access the properties in Python like I want to.
I Just want to know if this good practice or if there are other ways to achieve this ?
Thank you.
All reactions