Possible Duplicates:
Why does StyleCop recommend prefixing method or property calls with “this”?
When do you use the “this” keyword?
Hi SO, and happy Friday
I have a question regarding the use of this.method();. My code seems to work without using the this., but I include it because it seems like the right thing to do. When should .this be used, and because it’s presence doesn’t always make a difference, what’s the best practice for .this?
My opinion: use
thisfor disambiguation purposes, e.g., when a parameter name collides with a class property, otherwise leave it out for less noise.