Does removing "this." really make sense?

Hi,

I am using VS2003 and have recently installed RS2.0 (was using 1.5) and
have noticed that this version has a rule to remove "this." from the
code when it's not neccesary.

My question is, what benefit will this bring to the code? Is there less
IL generated? Is it faster? or it's just a cosmetic issue?

Thanks in advance,

Martin.

2 comments
Comment actions Permalink

This is only cosmetic issue.
Some companies have code style which tells to use/not to use "this."
qualifier

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Martín Marconcini" <martin@marconcini.com.ar> wrote in message
news:e7rdkh$b3i$1@is.intellij.net...

Hi,

>

I am using VS2003 and have recently installed RS2.0 (was using 1.5) and
have noticed that this version has a rule to remove "this." from the code
when it's not neccesary.

>

My question is, what benefit will this bring to the code? Is there less IL
generated? Is it faster? or it's just a cosmetic issue?

>

Thanks in advance,

>

Martin.



0
Comment actions Permalink

Eugene Pasynkov (JetBrains) wrote:

This is only cosmetic issue.
Some companies have code style which tells to use/not to use "this."
qualifier

Thanks for the clarification Eugene.

Yours,

Martín.


0

Please sign in to leave a comment.