Composite pattern with two Examples

In this article I will discuss the Composite pattern with two C# code examples. One is the usual leaf node example and other being the binary tree structure example.

Continue reading

Bridge Pattern with C# example

In this article I will discuss about the bridge pattern in C# with practical example. Bridge pattern is also an structural pattern like Proxy and decorator patterns.

Continue reading

proxy pattern

Proxy Pattern With Practical C# Example

In this article I will discuss about the proxy pattern. This post will also include the use cases where and how this pattern can be used with live C# example.

Continue reading

C# decorator pattern

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.

Continue reading

SOLID Design Principles

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.

Continue reading

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 I will discuss here with the help of C# code examples.

Continue reading

Simple observer pattern using delegate

In this article I will discuss about the observer pattern in C# with simple code example. I will use the publisher subscriber mechanism of the delegates to implement the observer pattern.

Continue reading

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 using an example.

Continue reading

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 sometimes become confused about the symbols I thought to come up with this article to have a nice handy reference.

Continue reading