C# – way to iterate through all enum values?

c++enumeration

Possible Duplicate:
C#: How to enumerate an enum?

The subject says all. I want to use that to add the values of an enum in a combobox.

Thanks

vIceBerg

Best Solution

string[] names = Enum.GetNames (typeof(MyEnum));

Then just populate the dropdown withe the array