惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

爱范儿
爱范儿
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
WordPress大学
WordPress大学
Y
Y Combinator Blog
I
InfoQ
美团技术团队
罗磊的独立博客
B
Blog RSS Feed
GbyAI
GbyAI
小众软件
小众软件
IT之家
IT之家
Engineering at Meta
Engineering at Meta
Blog — PlanetScale
Blog — PlanetScale
V
V2EX
Last Week in AI
Last Week in AI
酷 壳 – CoolShell
酷 壳 – CoolShell
Jina AI
Jina AI
MyScale Blog
MyScale Blog
博客园 - 聂微东
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
Apple Machine Learning Research
Apple Machine Learning Research
The GitHub Blog
The GitHub Blog
T
The Blog of Author Tim Ferriss

博客园 - 王德田

将页面的控件值给实体自动赋值 lookUpEdit 绑定数据的使用 解除劳动合同是如何赔偿的 水晶报表运行环境包 改iis的asp.net版本命令 NewtonJSONHelper 正则表达式全部符号解释 jquery 获取select 选择的文本 sqlserver 将数据导成insert语句存储过程 整库 linq 反匹配 this.EditingArea' 为空或不是对象 setInterval 例子 JSONConverter 查询oracle 用户的存储过程 update 关联表 更新 sql多条件检索 正则表达式介绍 电容的种类与用途,基本知识 电容介绍|电容的种类和作用
C# 字符串 转byte 数组和byte数组转 字符串函数
王德田 · 2011-08-03 · via 博客园 - 王德田

1   string   to   byte  []
  string   str   =   "abcd"  ;  
  byte[]   bytes   =   System.Text.Encoding.ASCII.GetBytes(str);   
   -------------------------------------------------------------------------------------------------------------
 2   byte[]   to   string  
   
  byte[]   bytes   =   new   byte[255]   ;   
   string   str   =   System.Text.Encoding.ASCII.GetString(bytes,0,bytes.Length);  

posted on 2011-08-03 14:42  王德田  阅读(952)  评论(0)    收藏  举报