博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  C#

摘要:http://www.cnblogs.com/tuyile006/archive/2006/06/21/431681.html最近由于编程的需要,对 C# 的类型转换做了一些研究,其内容涉及 C# 的装箱/拆箱/别名、数值类型间相互转换、字符的 ASCII 码和 Unicode 码、数值字符串和数值之间的转换、字符串和字符数组/字节数组之间的转换、各种数值类型和字节数组之间的转换、十六进制数输出以... 阅读全文

posted @ 2006-09-15 16:08 hnboy 阅读(511) 评论(0) 推荐(0)

摘要:停止ServiceController sc = new ServiceController("iisadmin");if(sc.Status=ServiceControllerStatus.Running) sc.Stop(); 啟動IIS服務ServiceController sc = new ServiceController("iisadmin"); sc.Start(); 重啟usi... 阅读全文

posted @ 2006-08-17 12:35 hnboy 阅读(486) 评论(1) 推荐(0)

摘要:一、标记标记(tokenizing)是从文本中提取具体内容的过程。下面的代码从句子中提取单词,并把它们输出到控制台。class mytokenizing{ static void Main(string[ ] args) { string mystring="I like this food,are you?"; char[] separators={' ',',','... 阅读全文

posted @ 2006-08-17 12:23 hnboy 阅读(297) 评论(0) 推荐(0)