Override Tostring () to enumerate to change the execution line

I have an enumeration like this

enum Animal:byte
{
Cat=0,
Dog=1,
Horse=2
}

I want to override ToString()to write a custom string because my application is multilingual ( Cat.ToString()should retrieve the translated word cat). therefore Descriptionkeyowrd cannot be used here. Can anyone give me a hint to find a neat way to solve this?

+5
source share

All Articles