Explain System.Diagnostics.CodeAnalysis.SuppressMessage

旧巷老猫 提交于 2019-12-02 22:57:18

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

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

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!