Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 623
Alexandre Bell Avatar asked Jun 17 '11 01:06

Alexandre Bell


2 Answers

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.

like image 189
MattDavey Avatar answered Oct 04 '22 18:10

MattDavey


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.

like image 37
Peter Macej Avatar answered Oct 04 '22 17:10

Peter Macej