Hiding Classes/Methods From XML Documentation

天大地大妈咪最大 提交于 2020-01-06 02:00:11

问题


I have a number of interfaces in an assembly which I need to document using XML-Doc and Sandcastle. However, there are also a few interfaces I would like to ignore when building the documentation file. Right now I manage to do it by compiling the assembly with those interfaces marked as internal, but this is more a workaround than a solution to the problem since, in fact, those need to be public. Is there some kind of attribute one can decoracte unwanted ones with so that they are ignored?


回答1:


I think the only way to hide specific types/memebers from intellisense is to set their access modifier as you mention you currently do.

As far as doing this with Sandcastle, you can use API filters similar to what is discussed in this MSDN blog.



来源:https://stackoverflow.com/questions/8772654/hiding-classes-methods-from-xml-documentation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!