摘要:
获取字符串长度 string str = “ABCDadcf测试”; int l = str.Length; 获取字符串字节长度 public int ByteLength(string str) { //使用Unicode编码的方式将字符串转换为字节数组,它将所有字符串(包括英文中文)全部以2个字 阅读全文
posted @ 2016-01-29 13:24
小豆子吃松子
阅读(2743)
评论(0)
推荐(0)