Шаблон observer c#



The Stock instance holds the reference to the StockDisplay instance (in a container). As the ask price attribute changes, the Stock instance notifies the StockDisplay of the change, calling the Notify method. Figure 1. Observer and Subject Relationship For example, suppose we have a simple application that tracks stock prices throughout the day. The fundamental strength of patterns rests with the fact that most problems have likely been encountered and solved by other individuals or development teams. As such, patterns provide a mechanism to share workable solutions between developers and organizations. Новый подход к объектно-ориентированному анализу и проектированию = Design Patterns Explained: A New Perspective on Object-Oriented Design. — М. : «Вильямс», 2002. — 288 с. — ISBN 0-201-71594-5.

Похожие записи: