Example #1
0
 public static string getPRItemTypeName(
     EnumPRItemType pRItemType)
 {
     return(PRItemType.Where(
                item => item.Item1 == pRItemType).
            FirstOrDefault().Item2);
 }
Example #2
0
 public static string getPRItemTypeName(EnumPRItemType item)
 {
     return(new Dictionary <EnumPRItemType, string>()
     {
         { EnumPRItemType.Goods, "Goods/货物" },
         { EnumPRItemType.Service, "Service/服务" },
         { EnumPRItemType.Fee, "Fee/费用" },
         { EnumPRItemType.Other, "Other/其他" }
     }[item]);
 }