.net 枚举类型转换

数字转化名称

1 Enum.GetName(typeof(枚举), 数字);

名称转化数字

1 (int)枚举
原文地址:https://www.cnblogs.com/xujunbao/p/8340428.html