摘要: 1、取字符串长度取字符串长度1 string str="Relict";2 int Len=str.Length;//得到字符串str的长度 2、字符串转为比特码字符串转为比特码1 byte[] bytStr = System.Text.Encoding.Default.GetBytes(str);2 //然后可以得到比特长度3 len = bytStr.Length;3、字符串相加字符串相加1 Systrm.Text.StringBuilder sd = new Systrm.Text.StringBuilder();2 sb.Append("Relict&qu 阅读全文
posted @ 2011-12-26 15:50 Relict 阅读(4005) 评论(0) 推荐(1) 编辑