M
Mark Fox
Hello,
I have a simple question. If there is an enum:
public enum Hello
{
First = 1,
Second = 2,
Third = 3
}
How would I parse an integer value to select an enum:
int valueToSelect = 2;
Hello thisHello = [??Enum.Parse(typeof(Hello),
valueToSelect)??];
Any help would be appreciated! Thanks.
I have a simple question. If there is an enum:
public enum Hello
{
First = 1,
Second = 2,
Third = 3
}
How would I parse an integer value to select an enum:
int valueToSelect = 2;
Hello thisHello = [??Enum.Parse(typeof(Hello),
valueToSelect)??];
Any help would be appreciated! Thanks.