摘要: Stream iStream = null; byte[] buffer = new Byte[10240];// 缓冲区块10K bytes : int length; long dataToRead; string filepath = @"E:\software\SQL Server 2000 Personal Edition.ISO"; ... 阅读全文
posted @ 2010-01-30 13:15 曾祥展 阅读(852) 评论(0) 推荐(0) 编辑
摘要: 方法一: //须添加对System.Web的引用 using System.Web.Security; ... /// <summary> /// SHA1加密字符串 /// </summary> /// <param name="source">源字符串</param> /// <returns> 阅读全文
posted @ 2010-01-30 11:35 曾祥展 阅读(33855) 评论(11) 推荐(15) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Management;//添加引用 using System.IO; namespace ConsoleApplication1 { class Program { ... 阅读全文
posted @ 2010-01-30 11:14 曾祥展 阅读(13810) 评论(1) 推荐(1) 编辑