title: Getting attributes of Enum's value
body: <p>I would like to know if it is possible to get attributes of the <code>enum</code> values and not of the <code>enum</code> itself? For example, suppose I have the following <code>enum</code>:</p>
  
  <pre><code>using System.ComponentModel; // for DescriptionAttribute
  
  enum FunkyAttributesEnum
  {
      [Description("Name With Spaces1")]
      NameWithoutSpaces1,    
      [Description("Name With Spaces2")]
      NameWithoutSpaces2
  }
  </code></pre>
  
  <p>What I want is given the enum type, produce 2-tuples of enum string value and its description.</p>
  
  <p>Value was easy:</p>
  
  <pre><code>Array values = System.Enum.GetValues(typeof(FunkyAttributesEnum));
  foreach (int value in values)
      Tuple.Value = Enum.GetName(typeof(FunkyAttributesEnum), value);
  </code></pre>
  
  <p>But how do I get description attribute's value, to populate <code>Tuple.Desc</code>? I can think of how to do it if the Attribute belongs to the <code>enum</code> itself, but I am at a loss as to how to get it from the value of the <code>enum</code>.</p>