.NET Reflector 6

Working with code

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:

  1. Open .NET Reflector and select the assembly you want to disassemble. See Running .NET Reflector for details on how to open an assembly.
  2. On the toolbar, select the language you want to disassemble into.
  3. 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:

  1. Select the class you want to analyze.
  2. Right-click and choose Analyze.The Analyzer pane shows the relationship between the class and the rest of the code.

Didn't find what you were looking for?