Category Archives: Design Patterns

Builder Pattern – The Different versions

Hello, In this article I will discuss about one of the simplest considered pattern after singleton pattern. This is the builder pattern. I will discuss here two variations or versions of the builder pattern with C# examples.

When and where to use C# Decorator Pattern

In this article I will discuss one of the important and structural design pattern. The pattern I want to discuss is the decorator pattern. I will use the C# code example to illustrate the use and implementation of this pattern.

SOLID Design principles with C# practical examples

Do you really want to develop the extensible, flexible and mobile code while working on the project in your organization. If yes then you should be aware of the SOLID design principles. In this article I will cover SOLID design principles with the help of practical examples which we can relate to our own application.

Achieving Loose Coupling using Dependency Injection

In this article I will discuss about the tight coupling and loose coupling. Why loose coupling is a better way of programming? How to achieve loose coupling using dependency injection? How to achieve dependency injection using unity framework ? You should be able to answer all these questions after reading the article. All there topics… Read More »

Using Singleton Pattern the Right way

In this article I will discuss about the singleton pattern using the C# language. Along with the singleton pattern I will also discuss the correct way to use this pattern in multithreaded applications and ways in which we can make it thread safe. I will also discuss how it is different from the static class… Read More »

Association Aggregation and Composition with UML symbols

Association, Aggregation and Composition with UML symbols This article explains some of the commonly used UML symbols that we need to understand to design for working on the class level design patterns. Besides association, aggregation and composition there are other UML designs and OOP concepts that we need to be familiar with. Since I myself… Read More »