///上一篇PinYin设置的枚举
  [System.FlagsAttribute]
    public enum PinYinOptions
    {
        None = 0,
        FirstLetterOnly = 1,	//只转换拼音首字母,默认转换全部
        TranslateUnknowWordToInterrogation = 1 << 1,		//转换未知汉字为问号,默认不转换
        EnableUnicodeLetter = 1 << 2,//保留非字母、非数字字符,默认不保留
    }
  //转换需要用空格区分
CultureInfo cultureInfo = System.Threading.Thread.CurrentThread.CurrentCulture;
          TextInfo text = cultureInfo.TextInfo;
          RandName = text.ToTitleCase(RandName);
        

相关文章:

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