Z
Zytan
I have an enum with a bunch of names / values. This is nice as I can
code using the names, instead of memorizing the values.
But, let's say something gives me a value. Now, while my code is happy
using a number, what if I want to display the name that this value
means?
Can I get the enum name, as it is typed in code, from the enum? or do
I need to write another array of strings to accomplish this?
Zytan
code using the names, instead of memorizing the values.
But, let's say something gives me a value. Now, while my code is happy
using a number, what if I want to display the name that this value
means?
Can I get the enum name, as it is typed in code, from the enum? or do
I need to write another array of strings to accomplish this?
Zytan