You may find code here: https://github.com/Glareone/Advanced-Csharp-topics/tree/main/dynamic-performance/ConsoleApp1
- How to use dynamic to call Python code and to build ExpandoObject (dynamic object with dynamic properties);
- You may find examples with Python Code in PythonAsText project
These examples will let you know whether Dynamic is really slow and if it's true - how much comparing with Reflection and direct allocation or method's call.
- You may find examples in Dynamic.Performance project
Benchmark results: