Curious question. I'm using Microsoft's Sandcastle to generate documentation from the XML comments in my C# code. Several of my classes are implementing interfaces which already have commented methods. I'd rather not duplicate the documentation in both the interface method and the public implemented method. Is there some kind of tag I can use to "inherit" this documentation from the interface?
Asked
Active
Viewed 3,911 times
3 Answers
6
You can add <inheritdoc/>
in the implementation.
You should have a look on the following thread: Ways to synchronize interface and implementation comments in C#

Community
- 1
- 1

Benoit Blanchon
- 13,364
- 4
- 73
- 81
0
In case anyone else is looking for a solution, I built a library to post-process the XML documentation files to add support for an <inheritdoc/> tag.
More info at www.inheritdoc.io (free version available).

K Johnson
- 478
- 5
- 14