如何使用枚举实现以下目标.NET
?我想对每个包含空格的值进行描述。
public enum PersonGender
{
Unknown = 0,
Male = 1,
Female = 2,
Intersex = 3,
Indeterminate = 3,
Non Stated = 9,
Inadequately Described = 9
}
我希望能够在每次使用这种类型的值时选择是使用描述还是整数。