【问题标题】:Using GhostDoc to generate Comments for attributes on properties使用 GhostDoc 为属性上的属性生成注释
【发布时间】:2012-07-25 18:32:27
【问题描述】:

如何配置 GhostDoc 来为属性上的属性生成 cmets,例如:

[Required(ErrorMessage = "Name is Required.")]
[StringLength(50, ErrorMessage = "Name must be less than 50 characters.")]
public string Name { get; set; }

【问题讨论】:

    标签: attributes comments ghostdoc


    【解决方案1】:

    简单

    移至工具--> GHostDoc--> 选项--> 规则--> 属性--> 双击您需要的类型并设置cmets 生成规则。

    【讨论】:

    • 对标准模板进行这些调整绝非易事。我正在查看样板 C# 模板。是的,很容易找到配置发生的位置。这个线程可以用一个很好的例子来说明@SetiSeeker 的要求。每个人都不容易的一个例子:bensnose.blogspot.com/2014/07/…
    猜你喜欢
    • 2016-12-15
    • 2019-03-24
    • 2019-07-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-02-09
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多