摘要:
获取字符串长度 string str = “ABCDadcf测试”; int l = str.Length; 获取字符串字节长度 public int ByteLength(string str) { //使用Unicode编码的方式将字符串转换为字节数组,它将所有字符串(包括英文中文)全部以2个字 阅读全文
摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections.Specialized; using System.IO; ... 阅读全文