You have half, Keep hunting

导航

2009年12月17日 #

C# 动态加载 动态卸载

摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.Threading;usingSystem.Refle... 阅读全文

posted @ 2009-12-17 11:19 鬼卒 阅读(551) 评论(0) 推荐(0) 编辑

2009年12月16日 #

C# 开发Windows服务 中使用委托

摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--privateThreadworkerThread=null;privateSubscribersub;publicDataReceiveService(){InitializeComponent()... 阅读全文

posted @ 2009-12-16 17:43 鬼卒 阅读(495) 评论(0) 推荐(0) 编辑

2009年12月15日 #

简单工厂模式

摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--namespaceAbstractFactory_DesignPattern{usingSystem;//Theseclassescouldbepartofaframework,//whichwewi... 阅读全文

posted @ 2009-12-15 17:07 鬼卒 阅读(231) 评论(0) 推荐(0) 编辑

原型模式 克隆

摘要: Prototype:声明一个克隆自身的接口代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--publicinterfacePrototype{publicprototypeClone();}publicclassConcretePrototype:P... 阅读全文

posted @ 2009-12-15 16:30 鬼卒 阅读(165) 评论(0) 推荐(0) 编辑

适配器模式

摘要: 流行写博客, 注册了个帐号,可不知道该写点啥以前遇到问题都Google了,突然发现自己独立解决的问题很少正好刚刚看了下适配器模式,看玩后突然有些想法听着很流行,看着挺复杂,其实适配说的就是已经有了一个接口和一个无相干类,然后用户想通过这个接口调用类成员 ,怎么办?定义一个新对象继承自接口,然后在这个新对象里把想要调用的类成员封装一下其实就这么简单! 阅读全文

posted @ 2009-12-15 15:49 鬼卒 阅读(166) 评论(0) 推荐(0) 编辑