0
kicks
Converting Delegates to Expression Trees
A few days ago, someone on Stack Overflow, asked how to turn a delegate into a LINQ expression tree. As there’s no builtin feature to do that, it’s not a straightforward process. You basically have to decompile the compiled method, and turned it into an object graph. I guess it’s a good thing that I’m working on a decompiler, if I need to decompile something.
So tonight I wrote a short spike to verify the feasibility of my idea, and it turns out to be pretty simple.