M
Mordachai
I'm trying to simply generate the list of enumeration values for a given
enumeration class.
e.g., for the following:
enum struct Colors { red, green, blue };
I would like to have a function:
void PrintValuesOf(the enumeration class or instance or whatever works)
{
for each (value in the given enumeration)
Console::WriteLine(the name of the enumeration & its value);
}
Which would output:
red
green
blue
Thanks for any assistence!
--
Steven S. Wolf
Head of Software Development
Cimex Corporation
enumeration class.
e.g., for the following:
enum struct Colors { red, green, blue };
I would like to have a function:
void PrintValuesOf(the enumeration class or instance or whatever works)
{
for each (value in the given enumeration)
Console::WriteLine(the name of the enumeration & its value);
}
Which would output:
red
green
blue
Thanks for any assistence!
--
Steven S. Wolf
Head of Software Development
Cimex Corporation