摘要
介绍了设计模式的概念,分析了一种常见的模式—观察者模式。给出了观察者模式的传统的实现方法,并分析了它的缺点。利用.net框架中的代理和事件技术对观察者模式进行了改进,从而简化了程序的开发难度和出现错误的概率,提高了系统的灵活性。
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.
出处
《微机发展》
2003年第8期36-37,97,共3页
Microcomputer Development