会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
枫崖
快乐生活,享受过程
博客园
首页
新随笔
联系
管理
订阅
2007年10月19日
从猫叫、老鼠跑和人醒看观察者模式
摘要: 今天看了一道.net的笔试题,其中就是要你实现这个连锁反应,当中可以看出观察者模式,这里使用c#语言的事件和代理机制实现起来是简单的,如果不用语言特性,是分别使用c#中event特性和不使用的demo 1using System; 2using System.Collections.Generic; 3using System.Text; 4using System.Runtime...
阅读全文
posted @ 2007-10-19 21:05 枫崖
阅读(717)
评论(0)
推荐(0)
编辑
公告