title: What is the significance of using empty get set?
body: <p>A <code>vector3</code> class is defined like below. </p>
  
  <pre><code>public struct Vector3
  {
      public double X { get; set; }
      public double Y { get; set; }
      public double Z { get; set; }   
  }
  </code></pre>
  
  <p>The code works fine. But what is the significance of using <code>{ get; set; }</code> when I can get and set the variables without using it ?</p>
  
  <pre><code>public struct Vector3
  {
      public double X;
      public double Y;
      public double Z;
  }
  </code></pre>