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.
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>O4wv1h3hl0mLCsTMhEIFKQ==</Id>