CodeKicks.com
Focus on Microsoft Technologies - Tutorials, Articles, Code Samples.

Thursday, August 31, 2006

Design Patterns in C# and .NET

Design Patterns in C# and .NET

Creational Patterns – Singleton by Susan Abraham. May 31, 2005.
This article discusses the implementation of the Singleton Design Pattern.
Design Issues & Architectures in .NET Application Development by Saradha Gnanavel. March 09, 2005.
The design and structure of an application is more important, as the technical details of its implementation. This article will provide some idea on the designing issues in a .NET application.
Implementation of Concrete Factory Design Pattern Using Reflection by Siva Kumar B. Oct 04, 2004.
Reflection is used to dynamically create an instance of a type, bind the type to an existing object, or get the type from an existing object. In this example, we implement Concrete Factory Pattern using Reflection to fetch records from MS-Access and MS-SQL Database.
Command Patterns in C# by Chandra Kant Upadhyay. Mar 04, 2002.
Command pattern encapsulates a request as an object and gives it a known public interface. Command Pattern ensures that every object receives its own commands and provides a decoupling between sender and receiver. A sender is an object that invokes an operation, and a receiver is an object that receives the request and acts on it. 
Creational Pattern - Builder by Ashish Jaiman. Feb 19, 2002.
The Builder pattern allows a client object to construct a complex object by specifying only its type and content. The client is shielded from the details of the object’s construction.
Creational Pattern - Abstract Factory by Ashish Jaiman. Feb 11, 2002.
An abstract factory provides an interface for creating families of related objects without specifying their concrete classes. Sometimes one wants to construct an instance of one of a suite of classes, deciding between the classes at the time of instantiation. In order to avoid duplicating the decision making everywhere an instance is created, we need a mechanism for creating instances of related classes without necessarily knowing which will be instantiated. Solution Create an Abstract Factory class to answer instances of concrete classes (usually subclasses).
Composite Patterns in C# by Rajesh V.S. Jan 23, 2002.
A Composite is a tree structure consisting of individual objects mixed with compositions of objects, that is, objects that have other objects as their children. The goal of the Composite pattern is to be able to treat individual objects and compositions of objects the same way. All objects in the Composite are derived from Composite itself.
Bridge Patterns in C# by Rajesh V.S. Jan 17, 2002.
Bridge Pattern is commonly known as Handle/Body idiom in C++ community. This pattern is used for decoupling an abstraction from its implementation so that the two can vary independently.
Adaptor Pattern in C# by Rajesh V.S. Jan 03, 2002.
The Gang Of Four (GoF) defined the Adaptor pattern as follows in their most famous book "Design Patterns” Gamma et al., Addison-Wesley, ISBN:0-201-63361-2” - “Convert the interface of a class into another interface clients expect. Adapter lets classes work together that couldn't otherwise because of incompatible interfaces."
Prototype Patterns in C# by Rajesh V.S.. Dec 26, 2001.
The prototype pattern is used when creating an instance of a class is very time consuming or complex in some way. Then rather than creating more instances, it is possible to make copies of the original instances and modifying them as appropriate. 
Builder Patterns in C# by Rajesh V.S. Dec 20, 2001.
Builder is an object creational design pattern that codifies the construction process outside of the actual steps that carries out the construction - thus allowing the construction process itself to be reused.  
Abstract Factory Patterns in C# by Rajesh V.S. Dec 17, 2001.
The abstract factory patterncomes under the classification of Creational Patterns. The creational patterns deals with the best way to create objects. The Abstract Factory provides an interface to create and return one of several families of related objects. 
Design Guidelines for Class Library Developers by MSDN
The goal of the .NET Framework design guidelines is to encourage consistency and predictability in public APIs while enabling Web and cross-language integration. 
Designing a .NET Application by MSDN
Get a simplified comparison of some of the physical architectures and learn the basic guidelines for appropriate usage scenarios, implementation options, advantages, and disadvantages.

, , , ,

Post a Comment