摘要: 设计模式原则:努力使模块间为松散耦合观察者模式:建立对象之间一种一对多的依赖关系,使得一个对象的属性改变,其它依赖对象能够自动被通知以及更新。示例代码:using System;usingSystem.Collections.Generic;using System.Linq;using System.Text;using System.IO;usingSystem.Security.Cryptography;namespace Hello{ //interface interfaceSubject { voidRegisterObserver(Observer user); voidRem. 阅读全文
posted @ 2011-09-19 18:44 Erebus_NET 阅读(104) 评论(0) 推荐(0) 编辑