string和char数组之间的转换

 
            char[] tar = inputString.ToCharArray();          //string  to char array

  

            string re = new string(tar);                           //char array to string
   

你可能感兴趣的:(string和char数组之间的转换)