List of #pragma warning disable codes and what they mean

為{幸葍}努か 提交于 2019-11-30 10:55:53

You shouldn't need a list. The compiler will tell you. If you get a compiler error that says "warning CS0168", then add 168 to the list (or, better yet, fix the code).

MSDN has a list of warning codes. Unfortunately, you have to click each link to view what the code actually means.

Look down the list of C# compiler errors and warnings to find the individual warning numbers.

FYI -

If you're using Visual Studio 2008, you can get the code directly from the Error List by right-clicking the error, and selecting Show Error Help from the context menu. The Help window should pop up, and show you everything you ever wanted to know about the error a la the MSDN website.

Could save you a bit of time.

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