O'Reilly logo

C# 5.0 Unleashed by Bart De Smet

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Code Analysis

Running Code Analysis (available through the project’s context menu) usually yields quite a few warnings related to methods. Figure 10.26 shows the result of running the analysis (with all rules enabled in the project’s settings) for a simple program. All the warnings should be understood by now, and fixes should be obvious.

Image

FIGURE 10.26 Some Code Analysis warnings related to methods.

You can suppress warnings if you have some good reason for it. Using the rule sets feature available through the project’s configuration settings, each project can decide what level of strictness to apply with regard to various rules. For example, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required