许明会的计算机技术主页

Language:C,C++,.NET Framework(C#)
Thinking:Design Pattern,Algorithm,WPF,Windows Internals
Database:SQLServer,Oracle,MySQL,PostSQL
IT:MCITP,Exchange,Lync,Virtualization,CCNP

导航

随笔分类 -  C#编码示例

上一页 1 2 3 4 5 下一页

WPF, WCF, WWF, CARDSPACE,C#语法及测试
DataAdapter数据集DataSet和数据库的同步(5):总结
摘要:DataSet包含DataTable类型的数组Tables。 每个DataTable又包含DataRow类型的Rows集合,包含DataColumn类型的Columns集合。 DataTable dataTable = dataSet.Tables[0]; DataRow dataRow = dataSet.Tables[0].Rows[0]; 取得列值: object columnValue =... 阅读全文

posted @ 2007-12-23 00:22 许明会 阅读(747) 评论(0) 推荐(0)

DataAdapter数据集DataSet和数据库的同步(4):数据适配器事件
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->/**//*--===------------------------------------------===--- CommandBuilder: 如果DataTable映射到单个数据库表或... 阅读全文

posted @ 2007-12-23 00:20 许明会 阅读(429) 评论(0) 推荐(0)

DataAdapter数据集DataSet和数据库的同步(3):使用CommandBuilder来更新数据集
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->/**//*--===------------------------------------------===--- CommandBuilder: 如果DataTable映射到单个数据库表或... 阅读全文

posted @ 2007-12-23 00:19 许明会 阅读(623) 评论(0) 推荐(0)

DataAdapter数据集DataSet和数据库的同步(1):DataRowVersion,Mapping
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/**//*--===------------------------------------------===---DataAdapter的数据映射:表和列映射许明会2007年12月22日22:18:09DataSet包含DataTable类型的集合Tables。每个DataTable又包含DataRow类型的Rows集合,包含DataColumn类型的Columns集合,还有表间关系的Rel 阅读全文

posted @ 2007-12-23 00:15 许明会 阅读(822) 评论(0) 推荐(0)

C#命名惯例和规范(摘录)
摘要:谁都会写代码!几个月的编程经验可以让你写出“可运行应用程序”。让它可运行容易,但是以最有效率的方式编码就需要下更多的功夫! 要知道,大多数程序员在写”可运行代码,“而不是”高效代码“。我们在这个指南课程前面提到,你想成为你们公司”最尊贵的专业人员“吗?写”高效代码“是一项艺术,你必须学习和实践它。 命名惯例和规范 注记 : Pascal 大小写形式-所有单词第一个字母大写,其他字母小写。 Cam... 阅读全文

posted @ 2007-12-17 22:36 许明会 阅读(215) 评论(0) 推荐(0)

XML序列号和反序列化:将类转换为xml文件/将文件转换为xml类
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->/*--===------------------------------------------===--- XML序列号和反序列化:将类转换为xml文件/将文件转换为xml类 ... 阅读全文

posted @ 2007-12-13 22:35 许明会 阅读(1212) 评论(0) 推荐(2)

XmlSchema:采用编码实现
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->/*--===------------------------------------------===--- XmlSchema:采用编码实现 许明会 2007年... 阅读全文

posted @ 2007-12-13 21:38 许明会 阅读(362) 评论(0) 推荐(0)

DataSet架构测试
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->/*--===------------------------------------------===--- DataSet架构测试 许明会 2007年12月13... 阅读全文

posted @ 2007-12-13 20:59 许明会 阅读(264) 评论(0) 推荐(0)

装箱后,object仍然清楚其存储的类型
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->/*--===------------------------------------------===--- 装箱后,object仍然清楚其存储的类型 许明会 2... 阅读全文

posted @ 2007-12-13 19:58 许明会 阅读(189) 评论(0) 推荐(0)

substitution控件:在页面输出缓存状态,保持部分数据的动态更新
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> Untitled Page substitution控件可以让缓存的页面部分刷新,从而保持部分数据的动态更新。 该时间将被缓存: ... 阅读全文

posted @ 2007-12-12 23:32 许明会 阅读(381) 评论(0) 推荐(0)

ASP.NET2.0结合aspnet_regsql实现数据库的缓存依赖
摘要:ASP.NET2.0的数据库缓存依赖保证在表的内容发生改变后才使得缓存失效,能够保证缓存数据的及时刷新。根据我的实验,只要客户的重新编译,或者数据库表发生改变,都导致缓存失效。下面是具体的步骤。 1、启用表的缓存依赖,以Pubs数据库的Authors表为例: //aspnet_regsql -S .\sqlexpress -E -d pubs -ed //aspnet_regsql -S .\sq... 阅读全文

posted @ 2007-12-11 22:56 许明会 阅读(831) 评论(0) 推荐(0)

C#2.0技术探讨(1):匿名方法
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->/*--===------------------------------------------===--- 匿名方法: 通过+= 后面跟delegate{}; 以内联方式编码 匿名方法是.N... 阅读全文

posted @ 2007-12-10 23:51 许明会 阅读(251) 评论(0) 推荐(0)

C#中,控制台模式可以使用定时器吗?
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->超级郁闷,我希望在Console模式编写程序调用定时器,难道真的不行? 下面这个程序运行根本没有任何反应,有知道的请赐教。 /*--===----------------------------... 阅读全文

posted @ 2007-12-10 16:39 许明会 阅读(1706) 评论(3) 推荐(1)

TCP编程(6):客户端接收程序TcpClient
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->/*--===------------------------------------------===--- 客户端接收程序: TcpClient, NetworkStream ... 阅读全文

posted @ 2007-12-09 23:58 许明会 阅读(992) 评论(0) 推荐(0)

TCP编程(5):服务器端 TcpListener
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->/*--===------------------------------------------===--- 服务器端 TcpListener: Start(), AcceptTcpC... 阅读全文

posted @ 2007-12-09 23:57 许明会 阅读(637) 评论(0) 推荐(0)

TCP编程(4): 发送电子邮件 MailMessage, SmtpClient, NetworkCredential
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->/*--===------------------------------------------===--- 发送电子邮件 SmtpClient, MailMessage, NetworkCr... 阅读全文

posted @ 2007-12-09 23:55 许明会 阅读(920) 评论(0) 推荐(0)

TCP编程(2):WebClient,html传输及文件下载
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->/*--===------------------------------------------===--- WebClient测试 许明会 2007年12月9... 阅读全文

posted @ 2007-12-09 23:51 许明会 阅读(440) 评论(0) 推荐(0)

TCP编程(1):获得IP地址及域名
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->/*--===------------------------------------------===--- 测试DNS类,实现IP地址和域名之间的转换 许明会 ... 阅读全文

posted @ 2007-12-09 23:50 许明会 阅读(479) 评论(0) 推荐(0)

C#3.5技术探讨(7) :Linq To Object with Lambda Expressions
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->/*--===------------------------------------------===--- Linq To Object with Lambda Expressions ... 阅读全文

posted @ 2007-12-03 23:00 许明会 阅读(323) 评论(0) 推荐(0)

C#3.0技术探讨(6) :Lambda表达式 Lambda Expressions
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->/*--===------------------------------------------===--- Lambda表达式 Lambda Expressions ... 阅读全文

posted @ 2007-12-03 20:28 许明会 阅读(258) 评论(0) 推荐(0)

上一页 1 2 3 4 5 下一页