如何引用 中的属性enums
?
如果我有以下enum
类型,如何引用该枚举类型的特定值的属性?
public enum PersonGender
{
Unknown = 0,
Male = 1,
Female = 2,
Intersex = 3,
Indeterminate = 3,
[EnumMember("Not Stated")]
NonStated = 9,
[EnumMember("Inadequately Described")]
InadequatelyDescribed = 9
}