
ok C# 01:通讯
carl2380
qq327831278
13141401405
展开
-
C# 十六进制字符串与数值类型之间转换
http://hi.baidu.com/greatdnl/blog/item/727006ef1796463fadafd5e2.html原创 2009-11-24 17:20:00 · 479 阅读 · 0 评论 -
c#串口控制
c#串口控制(1)http://hi.baidu.com/%B3%A9%CF%EB%BB%ED%C1%C1/blog/item/d510ba5068e50e6685352430.html c#串口控制(2)http://hi.baidu.com/%B3%A9%CF%EB%BB%ED%C1%C1/blog/item/c0870fddb9e5a7dd8d102932.html原创 2009-11-24 14:09:00 · 660 阅读 · 0 评论 -
c#中byte[]和string的转换
1、c#中byte[]和string的转换http://lfzwenzhu.blog.163.com/blog/static/63693772009112490212/byte[ ] 转换为stringbyte[ ] image;string ll = Encoding.Default.GetString(image);结果- image{维数:[0x00000003]} byt原创 2009-12-06 17:23:00 · 560 阅读 · 0 评论 -
c#中byte[]和string的转换
c#中byte[]和string的转换http://lfzwenzhu.blog.163.com/blog/static/63693772009112490212/byte[ ] 转换为stringbyte[ ] image;string ll = Encoding.Default.GetString(image);string 转换为byte[ ]string ss;byte[] b =转载 2009-12-06 17:06:00 · 426 阅读 · 0 评论 -
一个字符串在其中的数字和字母之间插入空格
一个字符串在其中的数字和字母之间插入空格作者: 周建东 日期: 2007-06-22 06:06字体大小: 小 中 大 string str = "123abc456def"; str = System.Text.RegularExpressions.Regex.Replace(str, @"(/d)([a-zA-Z])", "$1原创 2009-12-22 12:01:00 · 5719 阅读 · 0 评论 -
C#System.Text.RegularExpressions.Regex使用(一)
C#System.Text.RegularExpressions.Regex使用(一)http://blog.163.com/headmaster_01/blog/static/47556861200961035754508/ 需要引入命名空间 using System.Text.RegularExpressions;(若不引入,则写Regex时要写成 System.Text.Reg转载 2009-12-22 12:09:00 · 6144 阅读 · 0 评论 -
C#System.Text.RegularExpressions.Regex使用(二)
转:http://blog.163.com/headmaster_01/blog/static/47556861200961035754508/ (6)特殊字符的匹配 string x = "//";Regex r1 = new Regex("^////$");Console.WriteLine("r1 match count:" + r1.Matches(x).Count转载 2009-12-22 12:11:00 · 3322 阅读 · 0 评论