例如:
MyType mytype = (MyType)Enum.Parse(typeof(MyType), "AValue");
posted on 2014-05-29 07:21 橡皮鱼 阅读(498) 评论(0) 收藏 举报