//引用 Microsoft.VisualBasic;
public static string StringConvert(string str, string type)
{
String value = String.Empty;
switch (type)
{
case "1"://转繁体
value = Strings.StrConv(str, VbStrConv.TraditionalChinese,0);
break;
case "2"://转简体
value = Strings.StrConv(str, VbStrConv.SimplifiedChinese, 0);
break;
default:
break;
}
return value;
}
public static string StringConvert(string str, string type)
{
String value = String.Empty;
switch (type)
{
case "1"://转繁体
value = Strings.StrConv(str, VbStrConv.TraditionalChinese,0);
break;
case "2"://转简体
value = Strings.StrConv(str, VbStrConv.SimplifiedChinese, 0);
break;
default:
break;
}
return value;
}