Enum汇总

  1、 通过字符串获取到enum对象

(EnumTest)Enum.Parse(typeof(EnumTest), "Attribute1")

 

posted @ 2021-06-20 21:01  HelloBaker  阅读(48)  评论(0)    收藏  举报