'this' in C#

Explain about 'this' and where and when it should be used?

Questions by smohan   answers by smohan

Editorial / Best Answer

Charlito  

  • Member Since Apr-2008 | Apr 3rd, 2008


The 'this' keyword in C# is used to reference the current class instance.
It can be optionally used as a qualifier in referencing the fields, properties or methods of the current instance of the class.

Showing Answers 1 - 6 of 6 Answers

Charlito

  • Apr 3rd, 2008
 

The 'this' keyword in C# is used to reference the current class instance.
It can be optionally used as a qualifier in referencing the fields, properties or methods of the current instance of the class.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.