問題描述
是否可以查看程序集的源代碼?如果是,那麼如何? (Is it possible to view source code of assembly? If yes then How?)
I m using a assembly EventCalender. The ddl is EventCalender.dll. I copied this assembly from existing application. It provides customized functionality to calender. I want to see the code of that dll and want to change some functionality of it. How it will be possible..? Thanks in advance.
參考解法
方法 1:
If the dll is written in .NET you can view the code using the .NET Reflector.
方法 2:
Try lutz roeders 'Reflector' tool
http://www.red-gate.com/products/reflector/
方法 3:
I think this link will help you. You can do it using Reflector.
方法 4:
If you just want to view the IL code of the DLL, you can use ILDASM. If you want to convert it back to VB.NET or C#, use Reflector as the previous answers have suggested. One of the plugins allows you to extract all class files within the assembly to a single folder.
However, one point that others haven't addressed is that if you want to change the functionality, you will need to recompile the library after resolving all external references.
(by Devashri B.、Ed S.、Chris、Shoban、Cerebrus)