Inheriting XML Comments

T

Tim Haughton

Open question - is it possible to inherit comments along with an interface
or class??

For example - I have a class that implements IXPathNavigable. When VS
creates te method stub for me, it would be nice if by default, it would add
the comments for that method that are present on the interface.

This is perhaps more useful when I'm implementing one of our own interfaces.
I do find myself copying the comments from the interface across to the
class.

Perhaps a <inherit> comment tag would be nice. As we produce an xml comment
file for all our public API's, this would instruct VS to use the comments
from the base class.

Cheers,

Tim H
 
T

Tim Haughton

Thanks for the reply David. I'm not sure what you mean, could you elaborate?

Cheers,

Tim H

David Williams said:
You could move the XML comments to a separate file and use an <include
....> tag to point to the same location.
 

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