string ss = "abcdefg"; char[] cc = ss.ToCharArray();
string s = new string(cc);
byte[] bb = Encoding.UTF8.GetBytes(ss); string s = Encoding.UTF8.GetString(bb);
string strOr = "OR"; string result = string.Concat(new string[]{" A ",strOr," B ",Environment.NewLine," C ",strOr," D "});
C# char[]与string之间的相互转换,布布扣,bubuko.com
原文地址:http://blog.csdn.net/aoshilang2249/article/details/38112167