Using ILSpy for obtaining code from DLL

If you are.Net developer, then you will be obviously aware of DLLs. DLL stands for Dynamic Link Library. This file format used for holding multiple codes and procedures for Windows programs. If you are the C# developer then entire namespace will be store into DLL file. You can not read code written in DLL files, But usually, developers need it.

Step-1]
ILSpy is a Software that allows us to read C#/VB from that DLL. It was an open source project. You can download ILSpy from SourceFroge.

Step-2]
After downloading it you need to click on open from the toolbar and select all file that you want to extract.

ILSpy open DLL

Step-3]
After selecting DLL file you can expand all to see its members. For example, here I have selected MongoDB Driver’s DLL. It contains DefaultAuthenticator class under MongoDB.Driver.Core.Authentication namespace.

Extract code from DLL

Leave a Reply

Your email address will not be published. Required fields are marked *