string 转 enum

(自己定义的枚举类型)(Enum.Parse(typeof(自己定义的枚举类型), 待转字符串));

 

enum 转 string

enum.Getname(typeof(自己定义的枚举类型), 自己定义的枚举类型.值);

相关文章: