in

ASP.NET Weblogs

MindFill - Brian Carroll's Blog

Do While (WhatYouKnow) < (WhatYouKnow + 1)

Reading poorly formatted .NET code - made easy!

I downloaded a .NET app the other day and wondered how the author was accomplishing one piece of it.  He had made the source code available for download, so I downloaded it and started digging in.  But it didn't take me long to realize the the author had no style whatsoever - the code was a mess!

While I was reformatting the code to make it readable, I had a thought - it might be faster to use Lutz Roeder's .NET Reflector to disassemble the exe and then read the generated code.  I tried it and within a few minutes I had found what I was looking for.

What an awesome tool!

Published Nov 29 2004, 08:44 PM by bkcarroll
Filed under:

Comments

 

Eric Maino said:

It's also nice if you open the source code up and remove then replace the last } in the file. It will auto format for you at this point in time. I love that feature when getting nasty code, thought Reflector has saved me many times as well.
November 29, 2004 9:49 PM
 

foobar said:

Ctrl-A. Ctrl-K. Ctrl-F.

November 30, 2004 1:11 AM

Leave a Comment

(required)  
(optional)
(required)  
Add