0

Possible Duplicate:
When do you use the “this” keyword?

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

My questions:

  1. Should we try always to use this.?

  2. Does using / writing this have any effect on application performance or does it just make the code a little bit clearer?

Mike
  • 14,010
  • 29
  • 101
  • 161

1 Answers1

1

There shouldn't be any difference in performance. Its purely a style decision.

David Pfeffer
  • 38,869
  • 30
  • 127
  • 202