This author has developed a free utility, called Introspector, that lets you browse the introspection object model of assemblies on your system. You might find this tool useful when learning the introspection API and when developing custom rules. It eliminates some of the trial-and-error part of the development process by enabling you see beforehand the contents of the collections and properties made available by the introspection API.
If you are familiar with Lutz Roeder's .NET Reflector tool (http://www.aisto.com/roeder/dotnet), Introspector provides far less analysis and navigation features (and no decompiler). Instead, it aims at presenting the introspection objects with minimal transformation so that you can readily use what you discover in the tool to write custom rules against the introspection API.
The user interface consists of:
A menu bar, containing a menu that lets you browse for and open assemblies (.NET EXEs and DLLs).
A tree view which contains a hierarchy of items representing the
introspection MetadataCollection and
Node objects for each open assembly.
A property grid which displays the properties of the object selected in the tree view.
Introspector is available for download at http://www.binarycoder.net/fxcop.
![]() | Tip |
|---|---|
|
As you read the next sections on the introspection API, try using Introspector to explore the corresponding objects firsthand. |