I am looking to map a method from php to .NET.
There are various methods I am targeting, and most don't satisfy a one method-to-one method conversion; alot of the mapping really requires a few lines of logic thrown in, and not just "this .NET function call for this php function call."
Anyway, I've defined the mappings as strings, and all I need to do is plug them into a dynamic method that will create, run the code, and return the appropriate value.
I do not want to create an assembly in the process, which I think leaves CodeDomProvider out of it. And I don't want to generate my code in IL, which I think leaves MethodBuilder and DynamicMethod out of the running.
Can anyone lead me in the right direction here? Is there a way to do what I am asking?
View Complete Post