title: wpf getters and setters
body: <p>By what I've read I'm sure I'm going through the same process that most went through when jumping into WPF. I am coming from embedded im struggling.</p>
  
  <p>take these examples</p>
  
  <ol>
  <li><p><code>int foo;  //</code></p></li>
  <li><p><code>int foo { get; set; }  //c#</code></p></li>
  <li><p><code>public int foo{ get =&gt; foo; set =&gt; foo= value; }</code></p></li>
  <li><pre><code>private int _foo;
  public int foo{ get =&gt; _foo; set =&gt; _foo= value; }
  </code></pre></li>
  </ol>
  
  <p>Could someone, please give me a definitive answer as to why all the getters and setters.<br>
  - is it just a visual studio, and its autocomplete settings?<br>
   - is it because of threading and foo is getting marked as volatile behinds the scenes? 
  <br>- or is something else going on.<br></p>
  
  <p>Follow up<br>
  for anyone learning and struggling with data binding, the links in "580's" reply under "binding" are by far the best examples i have come across, to get your head around the syntax. Also i came across "ReSharper" for visual studio which lets you know about errors and the correct way to fix, using the correct methods. using both the examples and resharper i have learnt more in 3 hrs than i had in the last week.</p>