title: What is the difference...? [C# properties GET/SET ways]
body: <p>I know in C# you can easily create accessors to a data type, for example, by doing the following:</p>
  
  <pre><code>public class DCCProbeData
  {
      public float _linearActual { get; set; }
      public float _rotaryActual { get; set; }
  }
  </code></pre>
  
  <p>However my colleague, advised me to do it this way:</p>
  
  <pre><code>public class DCCProbeData
  {
      private float _linearActual = 0f;
  
      public float LinearActual
      {
          get { return _linearActual; }
          set { _linearActual = value; }
      }
      private float _rotaryActual = 0f;
  
      public float RotaryActual
      {
          get { return _rotaryActual; }
          set { _rotaryActual = value; }
      } 
  }
  </code></pre>
  
  <p>My way seems simpler, and more concise. What are the differences and benefits of doing it either way?</p>
  
  <p>Thanks</p>
  
  <p><strong>Edit</strong> Just a note, my colleague was able to generate the code for the "second way" using the Refactor option within the Class Details pane most easily found in a Diagram file. This makes it easy to add many Properties without having to manually create the accessors.</p>