John Lam 1997 — 2026

Lutz Roeder's Reflector.NET Rocks!

I haven’t used Lutz Roeder’s Reflector.NET for quite a while, probably since Build 2914 of the CLR (I’m feeling rather nostalgic today, so I will refer to CLR versions using their build numbers instead of less geeky terms like “Beta 2”). I first ran into Reflector sometime around Build 2204. I just got an email out of the blue from Lutz last night, which prompted me to go check out Reflector again using Build 3705.

Wow. I am blown away. Earlier builds of Reflector used to shell out to Serge Lidin’s ILDASM to do the dirty work. Now, while I still find ILDASM incredibly useful in my day job, I am now finding Reflector to be equally indispensible. The two new features in this build of Reflector that blow me away are:

  1. The Call Tree feature. This feature parses the CIL instructions of a method to try and figure out all of the other methods that could be called from the code in that method. It displays this information in a tree view, which lets you quickly discover related methods. This is incredibly useful if you are spelunking around inside of the FCL assemblies.
  2. The method / type references feature. This feature gives you a list of all of the methods that reference a type or a method. This requires searching through all of the CIL for all of the loaded assemblies. Therefore, it’s not exactly a speed demon. However, I’m sure that Lutz could build an in-memory cross-reference data structure, or dump the output of a CIL scan to a SQL database to improve the performance of the queries … but hey, what do you expect for free? ;)

The other thing that I love about Reflector is how incredibly polished it is. There are beautiful icons, there are bitmapped menus, there are even tooltips for CIL instructions that give you a synopsis of what that instruction does. There are hyperlinked metadata tokens in the disassembly view that take you to the definition of the method in the main Reflector tree view.

Unlike Serge who uses an old-fashioned Windows Edit control to display output, Lutz uses Internet Explorer and injects DHTML into IE to render the disassembly (among other things). This gives it such a nice polished look, and enables truly useful features such as hyperlinking to the definition of a method from a disassembly view.

Great job!