Extract Comments At Runtime

M

msedi

Hello,

I'm creating an application where I have several plugin modules which
are either loaded at startup or loaded during lifetime of the
application. These modules are used in a graph based style where
module can be linked together in order to process images. Since I have
added comments to each module I want to use the module comments at
runtime and display the comment-text in a tooltip.

Is there a way to do this?

Thank you
Martin
 
N

Nicholas Paldino [.NET/C# MVP]

Martin,

Well, you would have to make sure that the XML comment file is in the
same location as the assembly, or, you have specified where these files are.
Once you do that, you need a way to map the file to a particular assembly.

VS.NET requires that the XML file be in the same location as the
assembly with the same name, with an XML extension. You can have this same
requirement, which will satisfy how to locate and name the file.

Once you have this, you can parse the XML file, and then get the
appropriate comments for the type/method/property/parameter/whatever.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top