This is a mirror of official site: http://jasper-net.blogspot.com/

C# Observer Design Pattern Comprehensive Tutorial

| Sunday, October 31, 2010
Observer Design Pattern is one of the most usefull Design Pattern which you should learn. In this pattern, a Subject or Publisher is observed by several Observers or Subscribers. The Subjects will have to send a notification message to the Observers like Update().

This is the official definition from Design Patterns Book:

Define a one to many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.
As this tutorial is for absolute beginner it won’t use neither Interface class nor events / delegates. It will also only implements the essential methods (for example Unsubscribe or Detach method will be missing).

Read more: C# tutorial

Posted via email from .NET Info

0 comments: