本文整理匯總了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");
}
}