Every object can access a reference to itself with keyword this (also called the this reference). When a non-
static method is called for a particular object, the method’s body implicitly uses keyword
this to refer to the object’s instance variables and other methods. As you’ll see in Fig. 10.4, you can also use keyword
this explicitly in a non-
static method’s body. Section 10.5 shows a more interesting use of keyword
this. Section 10.9 explains why keyword
this cannot be used in a
1 // Fig. 10.4: ThisTest.cs 2 // this used implicitly and explicitly to refer to members of an object. 3 using System; 4 5 public class ...