怎么求的abcdefg这个字符串的长度啊??? 谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 string s=abcdefg;int a=s.Length; string s="abcdefg";int a=s.Length; 如果求字符串的字节长度而不是字符长度则采用如下方法:string sIDNum = "ABCD字符串";byte[] temp;temp = System.Text.Encoding.Default.GetBytes(sIDNum);int l = temp.Length; C#关于统计和汇总 dotnetbar中DockContainerItem中的快捷键问题 关于C#中使用 ?:运算的问题 日期查询字符类型转换的错误? 关于Lambda 表达式 index.aspx#Scene_1 xsl 转换到 Html的编码问题? c#操作注册表的问题~~~~ ===========大家保存csdn网页时如何存,xml的很乱 Shortcut.ToString()可不可以把Ctrl+N转换成“Ctrl+N”而不是“CtrlN”? string转成int的问题 winform中select访问Access时日期函数使用出错,急,在线等
int a=s.Length;
int a=s.Length;
string sIDNum = "ABCD字符串";
byte[] temp;
temp = System.Text.Encoding.Default.GetBytes(sIDNum);
int l = temp.Length;