GhostDoc如何获取属性的属性?

GhostDoc how to get attributes of a property?

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

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

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

我想达到 "Required" 和 "DisplayName" 属性并在摘要中使用它们。有什么办法可以实现吗?

谢谢。

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