title: Dictionary of Enum Values as strings
body: <p>I am trying to make an API, one function in that API takes Enum as parameter which then corresponds to a string which is used.</p>
  
  <pre><code>public enum PackageUnitOfMeasurement
  {
          LBS,
          KGS,
  };
  </code></pre>
  
  <p>The trivial method to code this will have to list every case in code. But as their are 30 cases so I am trying to avoid that and use <code>Dictionary Data Structure</code>, but I can't seem to connect the dots on how will I relate value to enum.</p>
  
  <pre><code>if(unit == PackageUnitOfMeasurement.LBS)
         uom.Code = "02";  //Please note this value has to be string
  else if (unit == PackageUnitOfMeasurement.KGS)
         uom.Code = "03";
  </code></pre>