Possible Duplicate:
C#: How to enumerate an enum?
Hi all I want to know that suppose I define a enum like
enum color
{
red=4;
blue=5;
gray=6;
green=8;
}
so can we print value of constant with the help of for loop, i means can we control it by loop; another question can we integrate it with dropdown list like as array. i means when we declare a element in side array suppose i write same color element, and those elment we can add with list or dropdown list(simple word binding with control)in asp.net , same thing can we perform with enum.