Working with code
Published 10 July 2013
Disassembling code
Using .NET Reflector, you can disassemble your assemblies back into the high-level language that produced them, or into a different language.
To disassemble code using .NET Reflector:
- Open .NET Reflector and select the assembly you want to disassemble. See Running .NET Reflector for details on how to open an assembly.
- On the toolbar, select the language you want to disassemble into.
- On the Tools menu, click Disassemble. You can also do this by pressing SPACE.
The code for the assembly is shown in the Disassembler pane. You can now navigate through the code.
The disassembled code may not be perfect, because some symbolic information is often lost in the compilation. For further details on why some code may not have been decompiled correctly, see this Simple Talk support article.
Analyzing code
The analyzer is used to show code dependencies and what is exposed by, instantiated by, and assigned by the class.
To analyze the code:
- Select the class you want to analyze.
- Right-click and choose Analyze.The Analyzer pane shows the relationship between the class and the rest of the code.