//通过value获取枚举对象
foreach (RoleType suit in Enum.GetValues(typeof(RoleType))) { //循环遍历枚举 }
InquiryOrderStatus enu = new InquiryOrderStatus(); Enum.TryParse<InquiryOrderStatus>(status.ToString(), out enu);
标签:blog bsp color log foreach pre values role each
//通过value获取枚举对象
foreach (RoleType suit in Enum.GetValues(typeof(RoleType))) { //循环遍历枚举 }
InquiryOrderStatus enu = new InquiryOrderStatus(); Enum.TryParse<InquiryOrderStatus>(status.ToString(), out enu);
标签:blog bsp color log foreach pre values role each
原文地址:https://www.cnblogs.com/Chavezcn/p/8274255.html