0

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

I started out programming in C++ where I believed it was best to explicitly specify scope resolution when calling a function. Over time, I migrated into C# and kept with my explicit convention of using the 'this' keyword when calling class methods.

A peer of mine has criticized my use of 'this' and says it should never be used unless I have to pass a self-referential parameter.

I don't agree with him, but I thought I would give this issue due diligence and ask the community. I figured much of it is a matter of taste, but if anyone knows of some style guides with some authority on the matter, that would be a wanted bonus.

Community
  • 1
  • 1
Jordan Parmer
  • 36,042
  • 30
  • 97
  • 119

0 Answers0