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?
If your enum with colors is named MyColorEnumName, Try
MyColorEnumName
Enum.GetName(typeof(MyColorEnumName), enumColorValue)