62,040
社区成员
发帖
与我相关
我的任务
分享
using Microsoft.VisualBasic;
/// <summary>
/// 转换为简体中文
/// </summary>
public static string ToSChinese(string str)
{
return Strings.StrConv(str, VbStrConv.SimplifiedChinese, 0);
}
/// <summary>
/// 转换为繁体中文
/// </summary>
public static string ToTChinese(string str)
{
return Strings.StrConv(str, VbStrConv.TraditionalChinese, 0);
}
public string Title
{
get
{
if (UserContext.GetLang() == "zh-tw")
return Util.ToTChinese(_title);
else
return _title;
}
set { _title = value; }
}