string 转换成 Char[]



string ss = "abcdefg";
  char[] cc = ss.ToCharArray();



Char[] 转换成string



string s = new string(cc);



byte[] 与 string 之间的转换



byte[] bb = Encoding.UTF8.GetBytes(ss);
  string s = Encoding.UTF8.GetString(bb);



string[] 转换成string



string strOr = "OR";
string result = string.Concat(new string[]{" A ",strOr," B ",Environment.NewLine," C ",strOr," D "});