This key word
please give me a small program on this key word in c#.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 9, 2013, 9:24 AM EDT
Simple explanation of this keyword to make user understand its way of using and implementation.
for example check this linkThe this keyword refers to the current instance of the class. It can be used to access members from within constructors, instance methods, and instance accessors.
Static constructors and member methods do not have a this pointer because they are not instantiated.
When you are writing code in method or property of a class, using "this" will allow you to make use of the intellisense.
this keyword is used when you want to track the instance, which is invoked to perform some calculation or further processing relating to that instance.
http://www.c-sharpcorner.com/uploadfile/puranindia/this-keyword-in-C-Sharp/
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 9, 2013, 9:28 AM EDT
Here it is
Iftikar
Jignesh TrivediRank #16 · 50.3K reputationPosted Jul 9, 2013, 7:03 PM EDT
hi,
"this" keyword is use to refer to the current instance of class.
Please refer
http://msdn.microsoft.com/en-us/library/dk1507sz(v=vs.71).aspx
http://www.c-sharpcorner.com/uploadfile/puranindia/this-keyword-in-C-Sharp/
http://www.dotnetperls.com/this
hope this will help you.