Design Patterns – Using the Observer Pattern in C#(dotnetcube.com)

submitted by dncdudedncdude(1350) 2 years, 8 months ago

The Observer Pattern belongs to the category of Behavioral patterns. In some applications, the state of an object (the subject) is constantly changing (Ex: the price of a product varies depending on market demand). There could be other objects (observers) that are interested in getting notified when the state of the subject changes. The Observer Pattern can be used to communicate the changes between a subject and one or more observers. The Observer Pattern defines a one to one dependency between the subject and the observers so that when a subject changes state, all the observers are notified.

add a comment |category: |Views: 332

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story