08 2009 档案

WCF 学习(一)
摘要:Jia.WCFService.Contract //dllJia.WCFService.Service//dllJia.WCFService.JiaHosting//exeJia.WCFService.Client //execode:Jia.WCFService.Contract/IDivide.csusing System;using System.Collections.Generic;us... 阅读全文

posted @ 2009-08-17 21:42 Acor 阅读(209) 评论(0) 推荐(0)

CopyFile
摘要:public void CopyFile(string sourcepath, string destpath){using (FileStream fs = new FileStream(sourcepath, FileMode.Open, FileAccess.Read)){using (FileStream fs2 = new FileStream(destpath, FileMode.Cr... 阅读全文

posted @ 2009-08-13 13:08 Acor 阅读(184) 评论(0) 推荐(0)

SharpZipLib使用示例
摘要:SharpZipLib是一个使用C#编写的Zip操作类库,在VB.NET、C#或其他的.NET语言中都可以使用它创建Zip文件、并进行读取和更新等操作。SharpZipLib目前的版本为0.85,下边通过几个例子来说明它的使用(使用前需引用命名空间ICSharpCode.SharpZipLib.Zip)。1.创建zip文件,无法添加文件夹using(ZipFilezip=ZipFile.Creat... 阅读全文

posted @ 2009-08-13 13:00 Acor 阅读(337) 评论(0) 推荐(0)

SQLExpress及其他(近期问题小结)
摘要:1、SQLExpress 安装后,需在MS网站下载SSMSE(Sql Server Management Studio Express),具备企业管理器功能。2、安装过后,数据库不能使用,选定数据库,右键:属性->Options:collation(整理、校勘)改为: Chinese_PRC_CI_AS。3、存储过程,是一组命名的sql 语句,存储在数据库中,可以接收参数和输出参数。完成特定... 阅读全文

posted @ 2009-08-07 09:10 Acor 阅读(2084) 评论(0) 推荐(0)

C#中的@符号(转)
摘要:C#中的@符号  2005-7-27  Allen Lee  @符号是特殊而又实用的C#符号。  比如它在string中的应用。  1  字符@表示,其后的字符串是个“逐字字符串”(verbatim string)。 // 这个说法来自C# Primer 中文版(Stanley B. Lippman, 侯捷/陈硕合译)  2  对于逐字字符串字面变量(verbatim st... 阅读全文

posted @ 2009-08-02 10:42 Acor 阅读(1183) 评论(0) 推荐(0)

Memento 模式
摘要:第三版:namespace DemoGame{ class GameRole { private int shenmingli; public int sml { get { return shenmingli; } set { shenmingli = value; } } private int gongjili; public int gjl { get { return gongjili;... 阅读全文

posted @ 2009-08-01 18:57 Acor 阅读(203) 评论(0) 推荐(0)

导航