摘要: MyFileCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2 3namespace Gof.Test.Composite 4{ 5 public class MyFile:FolderAbstract 6 ... 阅读全文
posted @ 2007-01-04 22:27 南守拥 阅读(344) 评论(1) 推荐(0) 编辑
摘要: 外观模式封装系统的复杂性来提高程序的可用性,我们经常用的是数据访问外观类,它隔离了Ado.net的复杂性。 简单的外观例子Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System; 2using System.Data; 3usin... 阅读全文
posted @ 2007-01-04 17:59 南守拥 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 类适配器: 客户程序定义好的接口Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1using System;23namespace Gof.Test.adapter4{5 public interface ICart6 {7 ... 阅读全文
posted @ 2007-01-04 17:26 南守拥 阅读(289) 评论(1) 推荐(0) 编辑