title: Implementation of Enum.TryParse in .NET 3.5
body: <p>How could I implement the .NET 4's Enum.TryParse method in .NET 3.5?</p>
  
  <pre class="lang-cs prettyprint-override"><code>public static bool TryParse&lt;TEnum&gt;(string value, out TEnum result) where TEnum : struct
  </code></pre>