title: Generic version of Enum.Parse in C#
body: <p>I have regularly wondered why C# has not yet implemeted a Generic Enum.Parse</p>
  
  <p>Lets say I have</p>
  
  <pre class="lang-cs prettyprint-override"><code>enum MyEnum
  {
     Value1,
     Value2
  }
  </code></pre>
  
  <p>And from an XML file/DB entry I wish to to create an Enum.</p>
  
  <pre class="lang-cs prettyprint-override"><code>MyEnum val = (MyEnum)Enum.Parse(typeof(MyEnum), "value1", true);
  </code></pre>
  
  <p>Could it not have been implemented as something like</p>
  
  <pre class="lang-cs prettyprint-override"><code>MyEnum cal = Enum.Parse&lt;MyEnum&gt;("value1");
  </code></pre>
  
  <p>This might seem like a small issue, but it seems like an overlooked one.</p>
  
  <p>Any thoughts?</p>