Using Observer design pattern to notify multiple class on change

Hi,


Many times when programming we come across situation where by change in one change needs to be updated in multiple object. For example if a parameter is used to make multiple calculation in different objects then on change of that parameter all the objects need to be notified of the change.  Or for example when the windows (operating system) or Dot Net framework shut downs or closes then it notifies all the application running on it to close so that it can make a clean close.

 

For this kind of situation the observer pattern was designed. In observer pattern there is a subject (also called observer) which maintains the list of all the dependent objects. In case

Continued...

Received the Microsoft Most Valuable Professional award for the year 2010

Hi,

 

I feel great joy to share with all that I have been rewarded the Microsoft MVP award for the year 2010 also. It feels great to have received the Award 2 year in succession.

 

A very Big Thanks to the MVP Team, My MVP lead and the Microsoft for giving the MVP award to me.

Thanks to all the friends, developers, and community members that have worked with me. I will try and continue my work forward in 2010......

Vikram

 
Copyright © 2006 - 2012 Vikram Lakhotia