摘要: 上一篇教程编写StyleCop自定义规则教程(一)---编写中文备注的简单校验规则 中使用的例子是校验代码中所有属性,不区分Public、Internal等。本文沿用原有例子增加两个规则的属性(IncludePublic和InculdeInternal),规则根据这两个属性的开关值,控制是否检查代码中访问权限是Public或Internal的代码。 在规则的xml文件中加入Properties节点View Code <Properties><BooleanPropertyName="IncludePublic"DefaultValue="True 阅读全文
posted @ 2011-06-29 15:17 Byeah 阅读(2495) 评论(0) 推荐(0) 编辑