- 积分
- 40165
- 好友
- 记录
- 主题
- 帖子
- 听众
- 收听
|
发表于 2013-4-16 15:39:06
|
显示全部楼层
[code=csharp] public virtual string GetString(byte[] bytes)
{
if (bytes == null)
{
throw new ArgumentNullException("bytes", Environment.GetResourceString("ArgumentNull_Array"));
}
return this.GetString(bytes, 0, bytes.Length);
}
public virtual string GetString(byte[] bytes, int index, int count)
{
return new string(this.GetChars(bytes, index, count));
}[/code]
你看看方法源码就知道了
这里并没有“Tostring方法。还是有一定区别的
|
|