Is there a tool to select some code in Visual Studio and have it show the corresponding MSIL?

StackOverflow https://stackoverflow.com/questions/459701

  •  19-08-2019
  •  | 
  •  

Question

Lately I've found myself constantly running ILDASM to study the MSIL output of my programs.

Are there any utilities to streamline this? Ideally, it would be nice to select some source code and have it compile, disassemble and emit the selected C# code in MSIL.

Anyone know of such a thing?

Was it helpful?

Solution

.NET Reflector

I think that RedGate have bought the IP to this tool now. I'm fairly sure that there is a VS plugin which integrates to it to allow you to run this from vs.

.Net Reflector Plugin alt text
(source: mutantdesign.co.uk)

OTHER TIPS

You could use testdriven.net an awesome unit testing plugin that gives you the ability to right click on any member and view it in reflector.

Open the .dll in reflector, select any function in any class, and select IL as the language to decompile to. I don't think you're looking for a level more granular than that.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top