Is it possible to include custom attributes in Sandcastle documentation?

丶灬走出姿态 提交于 2019-12-22 06:48:55

问题


Is it possible to include custom attributes in Sandcastle documentation?

For example, consider this c# method:

public void ExampleMethod
(
   [Required] string input1,
   [DefaultValue("example")] string input2
)

Is there any way to make Sandcastle documentation output that input1 has the required attribute?


回答1:


This works for attributes and classes, I haven't tried it on properties and fields yet. The description suggests it should work.

It might be required to turn on "Internal members" on too.

Unfortunately the documented attributes are not linked.

来源:https://stackoverflow.com/questions/18586636/is-it-possible-to-include-custom-attributes-in-sandcastle-documentation

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