Category Archives: Design Patterns

Dynamic query in LINQ

In this article, we will try to understand how we can create a dynamic query in LINQ. In order to do this, we first need to understand the concept of expression trees. What is Expression tree ? As per MSDN : Expression trees represent … Continue reading

Posted in Design Patterns | Leave a comment

Getting started with Repository pattern using C#

In this article, we will discuss about the repository pattern and will create a simple example to get the basic working of this pattern. To understand why we should be using this pattern, let’s take example of an MVC application, using the … Continue reading

Posted in Design and Architecture, Design Patterns | Tagged | Leave a comment

Proxy design pattern using C#

In this article, we will be discussing the Proxy pattern. It is the part of structural design patterns. As the name suggests, it will act as representation of an object, and will basically be the access point to use the … Continue reading

Posted in Design Patterns | Leave a comment

Memento design pattern using C#

In this article, we will be discussing the Memento design pattern, which is part of behavioral design pattern. Memento design pattern is aimed at maintaining the state or values of an instance of a class. This state can be re-stored … Continue reading

Posted in Design Patterns | Tagged | Leave a comment

Decorator design pattern using C#

In this article, we will be discussing the Decorator pattern. This pattern is part of the Structural design patterns. Decorator pattern is aimed at extending the existing functionality of the objects of a class. The meaning of objects of a … Continue reading

Posted in Design Patterns | Tagged | 2 Comments