摘要:
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)
浙公网安备 33010602011771号