welcome to Qijie's Blog 薛其杰
摘要: public static String convertToString(this Enum eff){ return Enum.GetName(eff.GetType(), eff);}public static EnumType converToEnum(this String enumValue) { return (EnumType) Enum.Parse(typeof(EnumType), enumValue);}post from : http://stackoverflow.com/questions/483794/convert-enum-to-string 阅读全文
posted @ 2014-03-17 16:34 零点零一 阅读(1497) 评论(0) 推荐(0)