Archive for the ‘.Net Framework’ Category
Design Patterns – Observer Pattern
October 18th, 2010
wiseinn
Explains the observer pattern and simple implementation Introduction This article explains the Observer pattern which is one of C# Design Patterns. The article provides a very simple implementation so its complexity can be easily understood. The observer pattern makes an object such that if its state changed somehow, other instances will be notified (or updated) [...]
Implementing Observer pattern in .NET
October 18th, 2010
wiseinn
The observer pattern should be used whenever one or more objects (observers) are interested to know the states of subject Download source - 8.49 KB Introduction The Observer pattern should be used whenever one or more objects (observers) are interested in knowing the states of subject. The subject maintains a list of its observers. Each observer must register [...]
Creational Pattern – Abstract Factory
October 18th, 2010
wiseinn
Abstract Factory Design Pattern and sample implementation in C# and VB .NET Download source files and documentation – 145 Kb Introduction Design patterns make it easier to reuse successful designs and architectures. Expressing proven techniques as design patterns makes them more accessible to developers of new systems. Design patterns help you choose design alternatives that [...]
Fowler’s Domain Logic Examples From Patterns of Enterprise Applications
October 17th, 2010
wiseinn
A C# project that implements Fowler’s Transaction Script Pattern. Download source code – 8.68 KB Download Domain Model – 35.11 KB Introduction I started reading Martin Fowler’s Patterns of Enterprise Architecture recently. I became confused with his description of the Transaction Script Pattern, so I created a Visual Studio Solution that implements the examples he [...]
Refactoring To Patterns: Bridge and Adapter Pattern
October 17th, 2010
wiseinn
The adapter and bridge patterns offer us another way to make our code more flexible, and gives us another option for code design. Developers new to OO may have already found they have used a version of one of these patterns in their code before, or can find a myriad of uses immediately. Introduction Developers [...]
Using an Observer design pattern to keep multiple forms up to date
October 17th, 2010
wiseinn
This article demonstrates how multiple forms can be updated simultaneously using Singleton and Observer Design Patterns. Download source – 14.7 Kb Introduction This article describes how to keep multiple instances of objects up to date using Singleton and Observer Design Patterns. Singleton Design Pattern We want to be able to share a variable between different [...]
Implementing design patterns in C#
October 17th, 2010
wiseinn
Implementing Singleton and AbstractFactory patterns in C# Download source files – 1.07 Kb Introduction Singleton ——- Creational Design pattern Use the Singleton Pattern when: There must be exactly one instance of a class, and it must be accessible to clients from a well-known access point. When the sole instance should be extensible by subclassing, and [...]
How to code like professionals, Part 3: Pluggable Factory
October 17th, 2010
wiseinn
Lessons on Design Patterns. Introduction I was supposed to write an article about the “Builder” Design Pattern, but a friend suggested writing about the “Pluggable Factory”. After all, I thought that it would be a better idea too! So, here you can read about one of the greatest Design Patterns called the “Pluggable Factory”. Pluggable [...]
Observer Design Pattern in C#
October 17th, 2010
wiseinn
Observer Design Pattern in C# Download source – 30.54 KB Introduction The Observer design pattern is a relationship between objects so that when one changes its state, all the others are notified accordingly. In other words, it defines that an object must be able to notify other objects without making assumptions about what these objects [...]
RSS Feed
Posted in
