摘要: 定义枚举 工具类如下,通过扩展方法的方式实现: public static string GetDescription(this Enum value) { Type enumType = value.GetType(); // 获取枚举常数名称。 string name = Enum.GetNam 阅读全文
posted @ 2022-10-12 09:52 echo_sw 阅读(65) 评论(0) 推荐(0) 编辑