title: C# When To Use "This" Keyword
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/23250/when-do-you-use-the-this-keyword">When do you use the &ldquo;this&rdquo; keyword?</a>  </p>
  </blockquote>
  
  
  
  <p>Hello,
  I understand that the <code>This</code> keyword is used to refer to an instance of the class, however, suppose I have a class called <code>Life</code>, which defines two fields, the person (<em>their name</em>) and their partner(<em>their name</em>):</p>
  
  <pre><code>class Life
  {
      //Fields
      private string _person;
      private string _partner;
  
      //Properties
      public string Person
      {
          get { return _person; }
          set { _person = value; }
      }
  
      public string Partner
      {
          get { return _partner; }
          set { _partner = value; }
      }
  
      //Constructor 1
      public Life()
      {
          _person = "Dave";
          _partner = "Sarah";
  
          MessageBox.Show("Life Constructor Called");
      }
  
      //Constructor 2
      public Life()
      {
          this._person = "Dave";
          this._partner = "Sarah";
  
          MessageBox.Show("Life Constructor Called");
      }
  }
  </code></pre>
  
  <p>Is there a difference between constructor 1 and constructor 2!?
  Or is it just better coding practice to use the "This" keyword?</p>
  
  <p>Regards</p>