title: Very basic use of Enum.TryParse doesn't work
body: <p>I found a very basic code as described below and I cannot get it to work in my c# windows Forms solution. I got the errors:</p>
  
  <ul>
  <li><p>The best overloaded method match for 'System.Enum.TryParse(string, out string)' has some invalid arguments    </p></li>
  <li><p>Argument 1: cannot convert from 'System.Type' to 'string' </p>
  
  <pre><code>public enum PetType
  {
      None,
      Cat = 1,
      Dog = 2
  }
  
  string value = "Dog";
  PetType pet = (PetType)Enum.TryParse(typeof(PetType), value);
  
  if (pet == PetType.Dog)
  {
      ...
  }
  </code></pre></li>
  </ul>
  
  <p>I don't understand where is the problem. The errors are all on the <code>Enum.TryParse</code> line. Any idea?</p>
  
  <p>Thanks.</p>