Dependency Injection

What is dependency Injection? Dependency Injection(DI) means to decouple the objects which are dependent on each other. Say object A is dependent on Object B so the idea is to decouple these object from each other. We don’t need to hard code the object using new keyword rather sharing dependencies to objects at runtime in […]

Rate this:

Singleton Pattern

Sample 1: Singleton pattern falls under Creational Pattern of Gang of Four (GOF) Design Patterns in .Net. It is pattern is one of the simplest design patterns. This pattern ensures that a class has only one instance. In this article, I would like share what is Singleton pattern and how is it work? What is […]

Rate this:

Design Patterns in .NET

  Abstract Factory   Creates an instance of several families of classes   Builder   Separates object construction from its representation   Factory Method   Creates an instance of several derived classes   Prototype   A fully initialized instance to be copied or cloned   Singleton   A class of which only a single instance can exist   Structural Patterns   Adapter   Match interfaces of different classes […]

Rate this: