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

(AreaEnum)Enum.Parse(typeof(AreaEnum), area.type)
原文地址:https://www.cnblogs.com/dreamsails/p/14266455.html