[ACCEPTED]-Explain System.Diagnostics.CodeAnalysis.SuppressMessage-static-analysis

Accepted answer
Score: 22

This attribute is used by Team Foundation Server's (TFS) code 8 analysis functionality to exclude code fragments 7 that would otherwise trigger warnings. You 6 can safely remove them if you're not using 5 TFS code analysis.

The attributes can be 4 added by hand or, more usually, are added 3 automatically via the Visual Studio GUI 2 when the "Suppress Message" option 1 is selected in the error list.

Score: 2

This attribute simply suppresses the generation 2 of the specified warning messages during 1 code analysis by TFS. No code is is excluded.

More Related questions