title: Convert enum to Dictionary<int,string> but string is the description attribute
body: <p>I try to convert an enum to Dictionary int is the value and string is the description of the value.</p>
  
  <p>I already have a function that gets the enum description by it's value but I don't how to use it with the enum iteration I have:</p>
  
  <pre><code>public static IDictionary&lt;int, string&gt; ConvertEnumToDictionary&lt;K&gt;()
          {
              Dictionary&lt;int, string&gt; mydic = new Dictionary&lt;int, string&gt;(); 
              foreach (K foo in Enum.GetValues(typeof(K)))
              {
                  //???
                  mydic.Add((int)foo, GetEnumDescription(foo));
              } 
          }
  
  public static string GetEnumDescription(Enum value)
      {
          // Get the Description attribute value for the enum value
          FieldInfo fi = value.GetType().GetField(value.ToString());
          DescriptionAttribute[] attributes = (DescriptionAttribute[])fi.GetCustomAttributes(typeof(DescriptionAttribute), false);
  
          if (attributes.Length &gt; 0)
              return attributes[0].Description;
          else
              return value.ToString();
      }
  
    public enum Lu_LanguageTypes
          {
              [Description("Hebrew")]
              he = 1,
              [Description("Englishj")]
              en = 2,
              [Description("Spanish")]
              es = 3
          }
  </code></pre>