EnumType
et=EnumType.Control;

string EnumName = "Control";
System.ComponentModel.EnumConverter enu=new System.ComponentModel.EnumConverter(et.GetType());
et=(EnumType)enu.ConvertFrom(EnumName);


EnumName为需要转换的 表示枚举值的字符串
EnumType 为需要转换的目标 枚举类型

相关文章: