At this point I have the following code.
internal enum Genders
{
Male,
Female,
NotSure,
Other
}
I'm thinking about adding an extra functionality so that I can foreach all the values and return a String based on that. So, I'd go for the mapping as follows.
Male -> "boy"
Female -> "girl"
NotSure -> "oh-boy"
Other -> "cow"
Should I refactor the enum into a class or is it recommended to just assign ToString values to the different enum states? I've googled it but didn't see any code examples for it, so I'm not sure if it's advisable to do that.
Perhaps it's better to create an auxiliary class and use a method like this?
private IEnumerable<String> GetGenders()
{
yield return "boy";
yield return "girl";
yield return "oh-boy";
yield return "cow";
}
Or am I just confusing myself and should stop immediately?