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 "});
參考文章:
http://www.cnblogs.com/wintalen/archive/2010/12/20/1911599.html
版权声明:本文博客琅邪工作室原创文章,博客,未经同意,不得转载。