摘要:
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 阅读全文