例如: MyType mytype = (MyType)Enum.Parse(typeof(MyType), "AValue"); 转载于:https://www.cnblogs.com/sungang3225/p/3758250.html