I am documenting an assembly using XML Documentation Comments, from which a chm file will be created using Sandcastle.
My assembly contains various interfaces, each of which is implemented by one class (in my scenario these are WCF services).
I have added documentation to the interfaces, is there any way for me to automatically document the relevant methods on the implementing classes?
I have a better answer: FiXml.
Cloning comments with GhostDoc \ AtomineerUtils is certainly working approach, but it has significant disadvantages, e.g.:
As it was mentioned, there is <inheritdoc>
tag in Sandcastle, but it has few disadvantages in comparison to FiXml:
.xml
files
containing extracted XML comments. But these files are used by many tools,
including .NET Reflector and class browser \ IntelliSense in Visual Studio .NET.
So if you use just Sandcastle, you won't see inherited documentation there.<see ... copy="true" />
.See Sandcastle's <inheritdoc>
description for further details.
Short description of FiXml: it is a post-processor of XML documentation produced by C# \ Visual Basic .Net. It is implemented as MSBuild task, so it's quite easy to integrate it to any project. It addresses few annoying cases related to writing XML documentation in these languages:
<see cref="Instance" />
property to get the only instance of it.”, or even “Initializes a new instance of <CurrentType>
class.”To solve mentioned issues, the following additional XML tags are provided:
<inheritdoc />, <inherited />
tags<see cref="..." copy="..." />
attribute in <see/>
tag.Here is its web page and download page.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With