公式:
(自枚)(Enum.Parse(typeof(自枚),待转字符串))
枚举类型能转换成 int 类型
enum 定义的枚举名称
{
值1,
值2,
…,
值n
}
eg:
enum sex
男,
女
// 或:
男=1,