title: Why should I use a private variable in a property accessor?
body: <p>Sorry If I am being noob, I have this doubt, why do we use private variables and set them using properties ? </p>
  
  <p>Why can't we just use properites alone ?</p>
  
  <p>I am talking about situations like this</p>
  
  <pre><code>private string _testVariable;
  
  public string MyProperty
  {
      get { return _testVariable;}
      set {_testVariable = value;}
  }
  </code></pre>
  
  <p>I am thinking of simply using</p>
  
  <pre><code>public string MyProperty { get; set; } 
  </code></pre>
  
  <p>Why redundant private variable? are these two strategies different ? can anyone please throw some light on this.</p>
  
  <p>Thanks</p>