How to turn off Visual Studio 2015 Roslyn error highlighting?

一曲冷凌霜 提交于 2019-12-05 11:57:24

If you are talking about the Code Analysis rules. Then under the project references, there is an analyzers node.

If you right click and select "Open Active Rule Set", then you can turn off any of the analyzers you don't want.

Wietze

Have you tried ((int?)result.Id).HasValue? This is the correct way to check a nullable type for nul value.

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