Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you extract classes' source code from a dll file?

Is there any software to do this? I didn't find any useful information on the internet so I am asking here.

like image 438
ILoveMusic Avatar asked Jan 16 '11 16:01

ILoveMusic


People also ask

How can I convert DLL to source code?

Right-click on the DLL that you want to convert. Hit “Export to Source Code” option. You will see the below page on the window.

Do DLL files contain code?

DLL files that support specific device operations are known as device drivers. DLL contains bits of code and data, like classes and variables, or other resources such as images that the larger program can use.

How do I open a resource DLL file?

Click on the Projects tab up the top. Double click on the resource DLL project name. This works better than referencing the debug DLL directly since it means if you change between a release build and debug build in your forms app, it will automatically build a matching release/debug version of your resource assembly.


1 Answers

You cannot get the exact code, but you can get a decompiled version of it.

The most popular (and best) tool is Reflector, but there are also other .Net decompilers (such as Dis#). You can also decompile the IL using ILDASM, which comes bundled with the .Net Framework SDK Tools.

like image 145
adrianbanks Avatar answered Oct 05 '22 23:10

adrianbanks