c# 根据字符串获得枚举对象对应的值

(AreaEnum)Enum.Parse(typeof(AreaEnum), area.type)
posted @ 2021-01-12 13:06  唯爱金生  阅读(1466)  评论(0)    收藏  举报