Enum in C# and foreach
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/105372/c-how-to-enumerate-an-enum">C#: How to enumerate an enum?</a>  </p>
</blockquote>



<p>Hi All,</p>

<p>I have an Enum</p>

<pre><code>public enum AttributeType
    {
        TextField = 1, 
        TextArea = 2,
        Date = 4, 
        Boolean = 8
    }
</code></pre>

<p>I want to foreach this enum and make an object array of it in this format </p>

<pre><code>object data = new object[]
{
   // new object[] { 1,"TextField"}
   new object[] { enumValue, enumText}
};
</code></pre>

<p>please reply as soon as you can</p>

<p>Thanks in Advance</p>
