20

I have a dll that contains a dot net assembly - common intermediate language. The problem is that it's lacking documentation and I need to figure out the api like available classes, properties and methods, correct parameters to pass etc.

Whats the best way to do this. I need some sort of viewer/inspector but I couldn't find any.

Thanks.

Marc Gravell
  • 927,783
  • 236
  • 2,422
  • 2,784
Tim Matthews
  • 4,871
  • 8
  • 36
  • 43

4 Answers4

26

Try reflector. http://www.red-gate.com/products/reflector/

Its free :-)

Edit:
As of February 2011, its no longer free ...:(
There are alternatives like ilspy or JetBrains dotPeek.

Community
  • 1
  • 1
Mendelt
  • 34,619
  • 6
  • 71
  • 94
3

Please try ILSpy. It is very good tool to view the assembly info. Assembly Analyzer is another tool for analyzing the metadata and resources within a .NET assembly, as well as disassembling non-CLI executable files.

Nikson K John
  • 437
  • 5
  • 13
  • Could you please elaborate more your answer adding a little more description about the solution you provide? – abarisone Oct 09 '15 at 12:16
1

Having tried a bunch of them (CodeReflect, Dis#, JustDecompile, ILSpy, dotPeek), one thing I realised is that most decompilers don't show you code in a very readable fashion. ILSpy is good, except that everything seem to be so cluttered. There are almost no new line at all between class members.

In that respect JustDecompile and dotPeek stand out. JustDecompile looks more polished with a slightly better interface to work with, except that it comes with a web installer, and you have to register as well in the process.

They all have strength and weaknesses, but my choice would be dotPeek which do not force you to register. It also comes with handy Visual Studio shortcuts which makes the whole experience familiar (for eg F12 to navigate to definition). With either of them you have a decent decompiler.

nawfal
  • 62,042
  • 48
  • 302
  • 339
1

JetBrains dotPeek works great and is free, highly recommend.

Tabrock
  • 1,007
  • 1
  • 17
  • 34