| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…mbdas or similar without the need of casting to System.Func
|
FWIW I attempted a function codec before - and it was mentioned in the PR that it should have used code generation to be more correct: pythonnet/codecs#1 |
Sorry, something went wrong.
|
I don't know why the build for 3.7 on 32bit didn't succeed. Can someone help with that? |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
What does this implement/fix? Explain your changes.
It's a decoder to ease use of C# Func<> method arguments. Previously, it was necessary to cast the python lambda expression to System.Func[...] which is very cumbersome for a script-user.
Does this close any currently open issues?
Was not my intention.
Any other comments?
The solution I used is quite complex as it needs to create wrapper types for each Func-Type-Variant. Code creation is implemented using the IL Code Generator, types are cached, generic type arguments are again converted using ToPython()
I hope my change is of some help!
Checklist
Check all those that are applicable and complete.