I have an enum that has different colors in it. I would like to pass some function an int and have it return the color name that is in the enum in that position.
int
What's the way to do this?
return ((MyEnumClass)n).ToString();
1.4m articles
1.4m replys
5 comments
57.0k users