Converting Delegates to Expression Trees(feedproxy.google.com)
submitted by
Lord(3737) 3 years, 1 month ago
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.
|category: Tips & Tricks
|Views: 23
tags:
Tips another
Everyones tags:
Your Tags: