摘要: using System;using System.Collections.Generic;public static class EnumHelper{ public static int GetNumberByEnumTEnum(TEnum e) { return Convert.ToInt32(Enum.Parse(typeof(TEnum), e.ToString())); } public static TEnum GetEnumbyNumberTEnum(string number) { return (TEnum)Enum.Parse(typeof(TEnum), num 阅读全文
posted @ 2011-01-22 11:12 启明星工作室 阅读(510) 评论(0) 推荐(0) 编辑