How can I achieve the following using enums in .NET
? I would like to have descriptions for each value that include spaces.
public enum PersonGender
{
Unknown = 0,
Male = 1,
Female = 2,
Intersex = 3,
Indeterminate = 3,
Non Stated = 9,
Inadequately Described = 9
}
I would like to be able to choose whether to use either the description or integer each time I use a value of this type.