Quick question about Enums
I need to convert the "integer" value of an enum to a string value.
Is there a simple way of doing this
e.g. if
and val2 has been chosen then I want the string value, str, to equal "val2"
I need to convert the "integer" value of an enum to a string value.
Is there a simple way of doing this
e.g. if
Code:
public enum test {val1, val2, val3} public string str
Comment