节点文献
Observer模式分析及其在.net中的改进
Analysis on Observer Pattern and Improvement in Dotnet Framework
【摘要】 介绍了设计模式的概念,分析了一种常见的模式—观察者模式。给出了观察者模式的传统的实现方法,并分析了它的缺点。利用.net框架中的代理和事件技术对观察者模式进行了改进,从而简化了程序的开发难度和出现错误的概率,提高了系统的灵活性。
【Abstract】 Introduces the concept of design patterns, and analyses a most common pattern, i.e. observer pattern.Presents a traditional implementation of observer pattern,and analyses its defects.Finally,Improves the pattern by means of delegate and event in the dotnet framework,which greatly reduces the difficulties and errors in development process,and enhances the flexibility of the system.
【关键词】 设计模式;
观察者模式;
.net框架;
代理;
【Key words】 design patterns; observer pattern; dotnet framework; delegate;
【Key words】 design patterns; observer pattern; dotnet framework; delegate;
- 【文献出处】 微机发展 ,Microcomputer Development , 编辑部邮箱 ,2003年08期
- 【分类号】TP311.52
- 【被引频次】6
- 【下载频次】78