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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Jul 9, 2013, 11:03 PM
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.
Iftikar HussainPosted Jul 9, 2013, 1:28 PM
Here it is
Iftikar
Sanjeeb LenkaPosted Jul 9, 2013, 1:24 PM
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/