As of reflector version 5 there are summary comments displayed at the bottom of the right panel of dissassembler output.

Does anyone know how to reflect off these or even if this capability is part of System.Reflection in .NET? I suspect you can only do it in unmanaged code.

There is something similar in the VS 2003.NET Object Browser. It seems to work off XML files which accompany the main dll you are reflecting.

Thanks.
cl0306
0

Comments

4 comments

  • odalet
    Yes this can be done using managed code, but that's certainly not part of System.Reflection. It is simply :wink: a matter of parsing the XML file and matching the documentation for a type with the one you currently browse.

    The (so regretted) NDoc project ( http://ndoc.sourceforge.net/ ) used to do this for documentation generation purpose.

    For the framework's assemblies, the corresponding XML are in C:\Windows\Microsoft.NET\Framework\v2.0.50727 (for .NET 2.0).
    odalet
    0
  • cl0306
    This is exactly what we ended up doing.

    Just thought it was strange that Reflector did this when the data is not part of System.Reflection.

    Thanks for the reply.
    cl0306
    0
  • acorey
    cl0306 wrote:
    As of reflector version 5 there are summary comments displayed at the bottom of the right panel of dissassembler output.

    This used to work, but the XML documentation files are now installed in a locale-specific subdirectory. I'm guessing this happened with .NET2sp1 or VS2008sp1. Reflector doesn't look in the new location, so it only shows the comments if the old .xml files have somehow been left installed.
    acorey
    0
  • cl0306
    that's really useful to know. Thanks.
    cl0306
    0

Add comment

Please sign in to leave a comment.