//获得字节长度

private int getLengthb(string str)  

  •         {  
  •             return System.Text.Encoding.Default.GetByteCount(str);  
  •         }  

 

posted on 2015-07-23 14:35  软件开发学习分享  阅读(133)  评论(0编辑  收藏  举报