问题
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