On my current project I have to call all non static methods with the this.
prefix.
For example:
public void Test(){
//wrong call
DoIt();
//Right call
this.DoIt();
}
public void DoIt(){
return "yeah";
}
Now R# says (and it is right) that when I type this.
, it is a redundant qualifier.
So I switched of that rule, but I want to go one step further: can I create a rule in R# (or VS2013) itself to give me a warning when I don't use this.
in calling non-static methods?