/// <summary>
        
/// 将字符串"123456"转换成"1,2,3,4,5,6"
        
/// </summary>
        
/// <param name="code">要转换的字符串</param>
        
/// <returns>转换结果</returns>
        protected string ConvertString(string code)
        {
            string result = string.Empty;
            for (int i = 0; i < code.Length; i++)
            {
                result += string.Format("{0},", code.Substring(i, 1));
            }
            return result.Remove(result.Length - 1);
        }

相关文章:

  • 2022-01-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-16
  • 2022-12-23
  • 2021-12-06
猜你喜欢
  • 2021-12-24
  • 2022-12-23
  • 2021-07-21
  • 2022-02-08
  • 2021-11-07
  • 2022-12-23
  • 2022-02-09
相关资源
相似解决方案