Enum.TryParse在判断转换的时候,如果值是整数,那么它会永远转换成功,这不太符合我们的期望。 开始实验: 1、枚举 public enum Hw_EnumPlatType { [Description("淘宝")] TaoBao = 1, [Description("天猫")] TianM Read More
posted @ 2018-12-20 10:57 ac楚 Views(253) Comments(0) Diggs(0) Edit