tags:

views:

2885

answers:

4

I am looking for a disassembler or better, a decompiler for .net. The situation is that the source code for an assembly written by one of my predecessors is lost and I'd like to take a look to see what it's doing.

I know that ildasm comes with the Visual Studio installation so I can get at the MSIL, but I was hoping there was a program clever enough to work back to the C# code (or best approximation).

Are there any tools for this out there?

(If not, I suppose it'll be a good excuse for me to sit down and start to learn MSIL)

+1  A: 

.NET Reflector is the usual tool for this.

mquander
+29  A: 

Have you looked at Reflector?

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

overstood
red gate = awesome
annakata
Although I would like to agree with annakata, clearly s/he, is wrong. Reflector = double awesome! :)
Russ
Red gate didn't originally write Reflector. The only other tool I have used from them (SQL Intellisense for SQL Server 2005) was slow. :)
Simucal
A: 

Reflector.

BFree
+3  A: 

Reflector is the way to go, but if you can't use that for some reason, Microsoft ships a disassembler called ILDasm with the framework.

A good source for MSIL knowledge is the book Expert .NET 2.0 IL Assembler by Serge Lidin.

Brian Rasmussen