Link to home
Create AccountLog in
Avatar of Suppai
Suppai

asked on

How to programmatically return the name of a Enum entry

Is there a way to get the name of a Enum entry e.g. myEnum.myEntry returned as a string e.g. "myEntry"?
ASKER CERTIFIED SOLUTION
Avatar of PaulHews
PaulHews
Flag of Canada image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Suppai
Suppai

ASKER

Ahh ToString so to speak
Maybe you can explain to me why you think this is only worth a B grade?  I think my answer was correct, clear and complete.