Explaining property text

P

PeterB

How do you create properties and other class members that are highlighted
with a small explaining text underneath it (and all arguments for methods)
when hover above it or writing in the texteditor?

It works for System-classes, and I think I used to have this on my own
classes (and other source projects I use) as well, but I'm getting old and
have started to forget things ;-) I've added the XML-tags for all
methods/properties i.e. <summary>, but is that only for documentation?

Thanks in advance!

/ Peter
 
P

Peter Foot [MVP]

You have to add the XML comments to your properties/methods etc, you'll also
have to make sure that in the project properties you specify an output name
for the processed xml comments - this should be the same as your dll name
but with xml extension. Then just make sure that when you distribute the dll
you place the corresponding xml file in the same folder. Visual Studio will
find it automatically and fill in the descriptions in the Object Browser,
you call also use a tool like NDoc to compile help files from that xml.

There is a walkthrough of the process here:-
http://www.opennetcf.org/PermaLink.aspx?guid=05650440-2281-4f72-bdb2-fe6343284dca

Peter
 
P

PeterB

Thank you!


Peter Foot said:
You have to add the XML comments to your properties/methods etc, you'll
also have to make sure that in the project properties you specify an
output name for the processed xml comments - this should be the same as
your dll name but with xml extension. Then just make sure that when you
distribute the dll you place the corresponding xml file in the same
folder. Visual Studio will find it automatically and fill in the
descriptions in the Object Browser, you call also use a tool like NDoc to
compile help files from that xml.

There is a walkthrough of the process here:-
http://www.opennetcf.org/PermaLink.aspx?guid=05650440-2281-4f72-bdb2-fe6343284dca

Peter
 

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