【问题标题】:C# documetation add information about AttributesC# 文档添加有关属性的信息
【发布时间】:2019-03-04 02:17:03
【问题描述】:

我在 C# 中使用 XML 文档并使用 doxygen 或 sandcastle 生成帮助文件。 我想知道是否有机会将有关使用的属性的信息放在文档中。

假设我想告知用作属性的ProtoMember 的顺序:

[ProtoContract]
public class Person{

    /// <summary>  Gets or sets the Age of a person. </summary>
    [ProtoMember(1)]
    public Int32 Age {get; set;}

}

【问题讨论】:

  • 您可能最好在 doxygen 中定义一个 INPUT_FILTER,将 [ProtoContract][ProtoMember(1)] 转换为评论。

标签: c# doxygen sandcastle xml-documentation


【解决方案1】:

我最终使用了docFx。一个非常好的选择。这也显示了每个属性的属性,所以它是可读的。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-07-30
    • 1970-01-01
    • 2012-06-16
    • 2012-02-16
    • 2013-08-30
    相关资源
    最近更新 更多