Should I use the keyword "this." In OOP programming, where can I skip it? Any benefits from using it?

Possible duplicate:
When do you use the keyword "this"?

In OOP, sometimes we can write this.PropertyName = VALUE , and sometimes we can skip this . and just write PropertyName = VALUE .

So my question is: we should always use this. ? Does using / writing this have any effect on application performance or just making the code a little clearer?

Thanks.

+1
source share
1 answer

There should be no difference in performance. This is a purely stylish solution.

+1
source

All Articles