会员
周边
新闻
博问
融资
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
欢迎来到城的Blog
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2006年8月30日
Observer模式
摘要: 为了解释如何在 .NET 中实现 Observer (观察器),并说明限制对象之间的依赖性所获得的好处,下面的示例重构了一个具有双向依赖关系的解决方案。首先,将该解决方案重构为基于 Design Patterns [Gamma95] 中所定义的 Observer 模式的实现;然后,利用对实现有单一继承性的语言...
阅读全文
posted @ 2006-08-30 04:57 城
阅读(437)
评论(1)
推荐(0)
编辑
2006年8月21日
.NET 框架可重新分发软件包 1.1 版技术参考
摘要: .NET 框架可重新分发软件包 1.1 版技术参考 发布日期: 6/28/2004 | 更新日期: 6/28/2004 Microsoft Corporation 本文档作为 Microsoft Visual Studio .NET 2003、Visual Basic .NET、Visual C++ .NET、Visual C# .NET、Visual J# .NET 和/或 Microsof...
阅读全文
posted @ 2006-08-21 18:24 城
阅读(749)
评论(0)
推荐(0)
编辑
2006年7月18日
P2P之UDP穿透NAT的原理与实现
摘要: 声明:原文来自P2P中国网,C#实现是本人做的,供参考 关键字:P2P, UDP, NAT, .NET 论坛上经常有对P2P原理的讨论,但是讨论归讨论,很少有实质的东西产生(源代码)。呵呵,在这里我就用自己实现的一个源代码来说明UDP穿越NAT的原理。 首先先介绍一些基本概念: NAT(Network Address Translators),网络地址转换:网络地址转换是在IP地址日...
阅读全文
posted @ 2006-07-18 01:57 城
阅读(683)
评论(1)
推荐(0)
编辑
2006年7月14日
ASP.NET 2.0下的条件编译
摘要: 在Web开发中测试单个页面的功能实在是太麻烦,从首页用户名、密码进去后,经过一些操作后才可以来到你要测试的那个页面。(其实无论做什么的开发,测试单个功能都是很麻烦)。抱着小心谨慎的态度,我一般喜欢写几段测一次,如果每次都兴师动众的启动整个项目来测试显然是很不经济的做法。 我一般会在Solution中新增一个用于测试用的配置,在其中增加一个“Test"之类的编译指令,然后在代码中,把一些测试条件,测...
阅读全文
posted @ 2006-07-14 16:50 城
阅读(293)
评论(0)
推荐(0)
编辑
2006年7月4日
listview心得
摘要: listViewTaskList.Clear(); DataSet tmpds = new DataSet(); tmpds = DAL.dataList.GetAutoTaskConfirm(49,7332); DataView dv = tmpds.Tables[0].DefaultView; ...
阅读全文
posted @ 2006-07-04 02:58 城
阅读(353)
评论(0)
推荐(0)
编辑
2006年7月1日
Sample Script for Detecting the .NET Framework 3.0 Using Internet Explorer
摘要: The user-agent string that is sent in browser headers is stored in the registry of the server computer, as listed in the following table. Version Registry Key ...
阅读全文
posted @ 2006-07-01 16:56 城
阅读(281)
评论(0)
推荐(0)
编辑
2006年6月28日
使用正则表达式进行替换
摘要: string a; public string hzEncode(Match m) { a += m.ToString(); return a.ToString(); } private void button1_Click(object sender, System.EventArgs e) { // Create a regular expression ...
阅读全文
posted @ 2006-06-28 02:19 城
阅读(1259)
评论(0)
推荐(0)
编辑
2006年6月23日
ping
摘要: private static bool CmdPing(string strIp, int timeOut){Process p = new Process();p.StartInfo.FileName = "cmd.exe";p.StartInfo.UseShellExecute = false;p.StartInfo.RedirectStandardInput = true;p.StartIn...
阅读全文
posted @ 2006-06-23 04:00 城
阅读(211)
评论(0)
推荐(0)
编辑
2006年6月22日
Socket和TcpClient怎样才能知道跟对方断开了没有?
摘要: while(bools) { try { if(newSocket[i2].Poll(-1,SelectMode.SelectRead)) { if(newSocket[i2].Availabl...
阅读全文
posted @ 2006-06-22 22:11 城
阅读(974)
评论(0)
推荐(0)
编辑
HTTP下载(doc)
摘要: System.Net.WebClient webClient=new System.Net.WebClient();Stream stream = webClient.OpenRead(SourceURL);byte[] arrByte = new byte[1024];long completedByteCount = 0;if (File.Exists(DestPath)){File.Dele...
阅读全文
posted @ 2006-06-22 19:52 城
阅读(472)
评论(2)
推荐(0)
编辑
上一页
1
2
3
4
5
6
下一页
公告