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

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