GhostDoc如何获取属性的属性?

问题描述 投票:0回答:1

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

我可以访问GhostDoc选项>规则>属性模板并自定义代码。我有一个属性,像;

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

我想达到“Required”和“DisplayName”属性并在摘要中使用它们。有没有办法实现它?

谢谢。

c# xml-documentation code-documentation ghostdoc
1个回答
1
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.