"this" reference best-practices
<h2>Duplicate</h2>

<blockquote>
  <p><a href="http://stackoverflow.com/questions/23250/when-do-you-use-the-this-keyword">When do you use the “this” keyword?</a></p>
</blockquote>

<p><hr /></p>

<p>What is the best practice case of referencing "this" in any given class?</p>

<p>Basic C# Forms example:</p>

<pre><code>class SomeForm : Form
{
  public SomeForm() {
    Text= "Hey, I'm a new form.";
    Size= new Size(400,350);
    SetupButtons();
  }
  private void SetupButtons() {
    Button btn1= new Button();
    //...
    Controls.Add(btn1);
  }
  public static void Main() {
    Application.Run( new SomeForm() );
  }
}
</code></pre>

<p>vs:</p>

<pre><code>class SomeForm : Form
{
  public SomeForm() {
    this.Text= "Hey, I'm a new form.";
    this.Size= new Size(400,350);
    this.SetupButtons();
  }
  private void SetupButtons() {
    Button btn1= new Button();
    //...
    this.Controls.Add(btn1);
  }
  public static void Main() {
    Application.Run( new SomeForm() );
  }
}
</code></pre>
