【问题标题】:GhostDoc how to get attributes of a property?GhostDoc如何获取属性的属性?
【发布时间】:2019-07-22 11:30:51
【问题描述】:

我在 Visual Studio 2017 上使用上述文档工具。

我可以访问 GhostDoc 选项 > 规则 > 属性模板并自定义代码。我有一个类似的财产;

[Display(Name="Text here")]
[Required]
public int CompanyId {get;set;}

我想达到“必需”和“显示名称”属性并在摘要中使用它们。有什么办法可以实现吗?

谢谢。

【问题讨论】:

    标签: c# xml-documentation code-documentation ghostdoc


    【解决方案1】:

    有关如何在模板中使用属性名称的信息,请参阅https://support.submain.com/community/a75/how-to-reference-an-attribute-on-a-method-or-property.aspx。属性值在 ATM 上不可用,但即将推出。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-05-04
      • 1970-01-01
      • 1970-01-01
      • 2011-11-06
      • 1970-01-01
      • 2010-10-29
      • 1970-01-01
      • 2015-01-29
      相关资源
      最近更新 更多