Viewing MSIL as expression tree
I'm currently building a compiler for my language into MSIL, and use Reflector to inspect the IL.
Is there a way to visualise the IL as an Expres开发者_Go百科sion Tree that could be used to generate the IL instead?
You could use FxCop for this, with a custom rule that writes to a text file or something.
Note: FxCop works on compiled managed code (DLLS/exes), not sure about starting from IL. I suggested this answer as you say you're using Reflector to get IL, implying you're starting from compiled managed code.
精彩评论