title: C# , Difference between property with variable and without variable
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4267144/whats-the-difference-between-encapsulating-a-private-member-as-a-property-and-de">What&#39;s the difference between encapsulating a private member as a property and defining a property without a private member?</a>  </p>
  </blockquote>
  
  
  
  <p>I know the basic functionality of properties  . But as i go through documentation in depth i see they are declared just with get set and without a variables . </p>
  
  <p>what is the diffeence between these two </p>
  
  <pre><code>public int EmpCode
  {
      get { return _strEmpCode; }
      set { _strEmpCode = value; }
  }  
  </code></pre>
  
  <p>and </p>
  
  <pre><code>public int EmpCode
  {
      get; 
      set; 
  }  
  </code></pre>
  
  <p>Is it just a easier way of writing which got as .net frameworks got upgraded . Or is there any functional difference ?</p>