会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
David Fan's blog
博客园
|
首页
|
新随笔
|
新文章
|
联系
|
订阅
|
管理
2007年7月22日
设计模式示例四 Observer(观察者)和Iterator(迭代器)
摘要: 之所以把这两个模式放在一起说是因为C#语句的关系。这两种模式实现起来变得很轻松或者说不一样了。Observer(观察者) class Observer { public delegate void EventHandler(string state); public event EventHandler changeEvent; public...
阅读全文
posted @ 2007-07-22 00:13 David Fan
阅读(479)
评论(0)
推荐(0)
编辑
公告