FxCop如何检查字段的值 [英] FxCop how to check the value of a field
问题描述
我想编写一个fxCop来检查类型A的所有字段的值,如果该值无效,则引发错误.
I want to write a fxCop to check the value of all fields with type A, if the value is invalid then raise error.
有人知道如何实现这一目标吗?
Anyone knows how to achieve that?
我还能在哪里看到Fxcop方法/类的文档?
Also where can I see the document of Fxcop methods/classes?
非常感谢
推荐答案
您好,贝克基,
Hi beckyzhou,
谢谢您在这里发布.
FxCop是一种对.NET代码进行静态代码分析的工具.它提供了数百种执行各种类型分析的规则.您可以从
FxCop is a tool that performs static code analysis of .NET code. It provides hundreds of rules that perform various types of analysis. You could download FxCop from FxCop 10.0.
供使用关于FxCop,您可以参考MSDN文章 .
For the use of FxCop, you could refer to the MSDN article Using FxCop.
根据我的搜索,这是关于如何 使用FxCop .它通过屏幕截图逐步显示了用法.
Based on my search, here is a good explanation about How to Use FxCop. It shows the usage step by step with screenshot.
我希望这样做会很有帮助.
最好的问候,
Wendy
这篇关于FxCop如何检查字段的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!