title: Local Variable Declaration Issue
body: <p>Im getting the following error:</p>
  
  <blockquote>
    <p>Cannot use local variable 'dob' before it is declared</p>
  </blockquote>
  
  <p>Here is my implementation</p>
  
  <pre><code>public class Person
      {
          ...
          public string dob { get; set; }
          ...
  
         public int getAge()
         {
                  DateTime origin = DateTime.Parse(dob);
                  return DateTime.Today.Year - origin.Year;
          }
  
          public string getFormattedDoB()
          {
                  DateTime origin = DateTime.Parse(dob);
                  string dob = origin.ToString("d");
                  return dob;
          }
      }
  </code></pre>
  
  <p>I am not sure what to make of this because it is complaining about it's use of dob in <code>getFormattedDoB()</code> but not in <code>getAge()</code> which comes before it. If anyone could shed some light on this that would be great</p>