/// <summary>
/// 字符串简体转繁体
/// </summary>
/// <param name="strSimple"></param>
/// <returns></returns>
public static string ToTraditionalChinese(string strSimple)
{
string strTraditional = Microsoft.VisualBasic.Strings.StrConv(strSimple, Microsoft.VisualBasic.VbStrConv.TraditionalChinese, 0);
return strTraditional;
}
/// <summary>
/// 字符串繁体转简体
/// </summary>
/// <param name="strTraditional"></param>
/// <returns></returns>
public static string ToSimplifiedChinese(string strTraditional)
{
string strSimple = Microsoft.VisualBasic.Strings.StrConv(strTraditional, VbStrConv.SimplifiedChinese, 0);
return strSimple;
}
找不到Microsoft.VisualBasic解决方法:
右击项目:点击[添加引用]。把这个 Microsoft.VisualBasic...引用到项目
出自:https://www.cnblogs.com/Clin/archive/2013/03/14/2959280.html
原文地址:https://www.cnblogs.com/tsql/p/9634084.html