Feyyaz
Feyyaz

Reputation: 3206

DLL Decompilation

I'm trying to decompile a dll with the tool called Reflector, but it shows only the definitions, not the complete code. What is the reason? How can I decompile it completely?

Regards

Upvotes: 1

Views: 1700

Answers (5)

Cody Gray
Cody Gray

Reputation: 244782

In Reflector, drill down the treeview on the left to find the type whose code you want to view. Once you've found it, click on it to select it and press Spacebar. You'll then see the method declarations to the right. Scroll down to the very bottom of that view, and click the green "Expand Methods" hyperlink.

Alternatively, expand that type in the treeview, select an individual method, and then press Spacebar.

Upvotes: 0

Marc Gravell
Marc Gravell

Reputation: 1062955

To see the code in reflector, you must navigate to a method. If you are looking at a type, then yes - it will only show you definitions, even when disassembled (although there is sometimes an "Expand Methods" button that can be helpful).

If it still doesn't work, even when looking at a method, then the dll is most likely obfuscated or not compiled from code (direct IL can do things that are hard to map back to most languages).

Upvotes: 0

ashish.chotalia
ashish.chotalia

Reputation: 3746

Open Reflector

Right click on the dll you want to extract

click Export

Give c:\YourDirectoryName.

You will have your extracted code in c:\YourDirectoryName

Upvotes: 0

Robert Levy
Robert Levy

Reputation: 29073

right click on an assembly, namespace, class, or member and pick "disassemble" from the context menu. or as a shortcut, press the spacebar

Upvotes: 1

Ben Voigt
Ben Voigt

Reputation: 283684

Is it a mixed-mode DLL? Have you expanded a method to see its decompiled source?

You might find the FileDisassembler plugin to be helpful (not sure if this is the most recent version).

Upvotes: 1

Related Questions