简体   繁体   中英

Interface documentation not acessible from interface implementation class

Can I somehow instruct visual studio to automatically copy any interface member XML documentation to its implementation class?

According to this MSDN How-To updated for this exact effect just 2 months ago, one is supposed to. But I can't replicate this behavior in any way. Also looking at the xml file in that article, there's in fact no entry for the interface implementation.

I use submain GhostDoc - it's a free visual studio plugin which automatically documents code blocks, either by copying from base class / interface documentation, or intelligently trying to guess the documentation (which is surprisingly effective). I couldn't develop without it these days.

You can use Sandcastle Help File Builder
it has <inheritdoc/> which allows you to inherit documentation from base types.

As far as I know, VS itself cannot do this. Our VSdocman automatically inherits comments from base and implemented types when it generates documentation. Moreover, it can explicitly add the inherited comment into source code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM