本文整理汇总了C#中System.Util.getMsg方法的典型用法代码示例。如果您正苦于以下问题:C# Util.getMsg方法的具体用法?C# Util.getMsg怎么用?C# Util.getMsg使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Util
的用法示例。
在下文中一共展示了Util.getMsg方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: incomeLevel2Str
public static string incomeLevel2Str(Util.Resource resource, IncomeLevel level)
{
switch (level)
{
case IncomeLevel.GOOD: return resource.getMsg("good");
case IncomeLevel.BAD: return resource.getMsg("bad");
default: return resource.getMsg("good");
}
}
示例2: familyLevel2Str
public static string familyLevel2Str(Util.Resource resource, FamilyLevel level)
{
switch (level)
{
case FamilyLevel.LOW: return resource.getMsg("family_level_low");
case FamilyLevel.MEDIUM: return resource.getMsg("family_level_medium");
case FamilyLevel.HIGH: return resource.getMsg("family_level_high");
default: return resource.getMsg("family_level_medium");
}
}
示例3: customerType2Str
public static string customerType2Str(Util.Resource resource, CustomerType type)
{
switch (type)
{
case CustomerType.AGENT: return resource.getMsg("customer_type_agent");
case CustomerType.PERSONAL: return resource.getMsg("customer_type_personal");
case CustomerType.OTHER: return resource.getMsg("customer_type_other");
default: return resource.getMsg("customer_type_personal");
}
}
示例4: customerLevel2Str
public static string customerLevel2Str(Util.Resource resource, CustomerLevel level)
{
switch (level)
{
case CustomerLevel.LOW: return resource.getMsg("customer_level_low");
case CustomerLevel.MEDIUM: return resource.getMsg("customer_level_medium");
case CustomerLevel.HIGH: return resource.getMsg("customer_level_high");
default: return resource.getMsg("customer_level_medium");
}
}