Let Resharper force this keyword on fields

 ̄綄美尐妖づ 提交于 2019-12-03 04:14:50

In ReSharper Options, under Code Editing -> C# -> Code Style there is an option for Use "this." qualifier for that you can set for fields, properties, events, and methods.

Checkout the StyleCop for Resharper plugin (part of the StyleCop project).

You can then set the "default" severity for StyleCop to Error (or just this particular rule) and it will appear in the R# "files with errors" area inside Visual Studio.

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