No that's not possible, but you can attach attributes to enum
members. The EnumMemberAttribute is designed exactly for the purpose you described.
public enum PersonGender
{
Unknown = 0,
Male = 1,
Female = 2,
Intersex = 3,
Indeterminate = 3,
[EnumMember(Value = "Not Stated")]
NonStated = 9,
[EnumMember(Value = "Inadequately Described")]
InadequatelyDescribed = 9
}
For more information on how to use the EnumMemberAttribute
to convert strings to enum
values, see this thread.