I use Stylecop for Resharper, and whenever I call something in my class, Stylecop tells me to use the this keyword . But the IDE says this is redundant code (which it is sure), so why should I use the this keyword ?
Does redundant code mean that it is not needed (obviously), and the compiler will do nothing with this keyword? Therefore, I assume that this keyword is just for clarity.
Also, with the CLR, do things like this fall, sequentially in different languages? Therefore, if the answer is that the compiler does not even affect the this keyword , and this is just for presentation and clarity, then is this true for VB.NET? I assume this is all for clarity, as stylecop follows this, and Fxcop (which I will use later) monitors the quality of my code from a technical point of view.
thanks
source
share