Let Resharper force this keyword on fields

前端 未结 2 862
感情败类
感情败类 2021-02-06 21:55

Does anyone know if it is possible to have resharper force the use of the this keyword when it can be used? For fields and such...

Resharper is capable of showing where

2条回答
  •  北海茫月
    2021-02-06 22:34

    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.

提交回复
热议问题