5

I have an enum like this

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

I want to override the ToString() of it to to write a custom string because my application is a multi-language one(Cat.ToString() should retrieve the translated word of cat). so the Description keyowrd can't be used here.can anyone give me a hint to find a neat way to solve this?

Sam Hosseini
  • 813
  • 2
  • 9
  • 17
Sara S.
  • 1,365
  • 1
  • 15
  • 33

0 Answers0