我在Visual Studio 2017上使用了上述文档工具。
我可以访问GhostDoc Options > Rules > Property模板并定制代码。我有一个属性,比如;
[Display(Name="Text here")]
[Required]
public int CompanyId {get;set;}
我希望达到"Required“和"DisplayName”属性,并在总结中使用它们。有没有办法做到这一点?
谢谢。
发布于 2019-03-24 07:46:05
如何使用模板中的属性名称,请参考https://support.submain.com/community/a75/how-to-reference-an-attribute-on-a-method-or-property.aspx。该属性值在自动柜员机上不可用,但即将推出。
https://stackoverflow.com/questions/54927577
复制相似问题