添加 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);
        }

相关文章:

  • 2022-12-23
  • 2021-10-29
  • 2021-12-04
  • 2021-12-04
  • 2022-02-02
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-05
  • 2021-09-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
相关资源
相似解决方案