title: How can I get an enum value from its description?
body: <p>I have an enum representing all material assembly codes in the system:</p>
  
  <pre><code>public enum EAssemblyUnit
  {
      [Description("UCAL1")]
      eUCAL1,
      [Description("UCAL1-3CP")]
      eUCAL13CP,
      [Description("UCAL40-3CP")]
      eUCAL403CP, // ...
  }
  </code></pre>
  
  <p>In legacy code in another part of the system, I have objects labeled with strings that match the enum descriptions. Given one of those strings, what's the cleanest way to get the enum value? I envision something like:</p>
  
  <pre><code>public EAssemblyUnit FromDescription(string AU)
  {
      EAssemblyUnit eAU = &lt;value we find with description matching AU&gt;
      return eAU;
  }
  </code></pre>