J
Jamie Winder via .NET 247
Is it possible to iterate through all of the possible values of an enumeration? (with foreach, maybe?)
What I need to do is fill a ComboBox with all possible values for an enumeration.
e.g
foreach ([value] in [enumeration])
{
comboBox1.Items.Add (value.ToString ("G");
}
Is this possible? Is so, how?
Thanks in advance.
What I need to do is fill a ComboBox with all possible values for an enumeration.
e.g
foreach ([value] in [enumeration])
{
comboBox1.Items.Add (value.ToString ("G");
}
Is this possible? Is so, how?
Thanks in advance.