https://github.com/azeheruddin-khan/designpatterns
Project : Design Patterns Examples in C#
https://github.com/azeheruddin-khan/designpatterns
c-sharp csharp csharp-code design-pattern design-patterns-for-humans designpattern designpatterndemo designpatterns software-development
Last synced: 6 months ago
JSON representation
Project : Design Patterns Examples in C#
- Host: GitHub
- URL: https://github.com/azeheruddin-khan/designpatterns
- Owner: azeheruddin-khan
- Created: 2024-12-27T17:17:31.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-01-10T17:58:43.000Z (6 months ago)
- Last Synced: 2025-01-10T18:55:19.441Z (6 months ago)
- Topics: c-sharp, csharp, csharp-code, design-pattern, design-patterns-for-humans, designpattern, designpatterndemo, designpatterns, software-development
- Language: C#
- Homepage: https://bookmarkit.in/
- Size: 1 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DesignPatterns
This repository contains comprehensive structural and real-world examples of GoF (Gang of Four) design patterns implemented in the C# programming language. It serves as a quick reference, and I plan to continuously add more real-world examples in the future.Creational Patterns:
-
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(Shallow or Deep Copy) -
Singleton -- A class of which only a single instance can exist
Structural Patterns:
-
Adapter --Match interfaces of different classes -
Bridge --Separates an object’s interface from its implementation -
Composite --A tree structure of simple and composite objects -
Decorator -- Add responsibilities to objects dynamically -
Facade -- A single class that represents an entire subsystem -
Flyweight -- A fine-grained instance used for efficient sharing -
Proxy -- An object representing another object
Behavioral Patterns:
- Chain of Responsibility --A way of passing a request between a chain of objects
-
Command--Encapsulate a command request as an object -
Interpreter--A way to include language elements in a program -
Iterator--Sequentially access the elements of a collection -
Mediator -- Defines simplified communication between classes -
Memento -- Capture and restore an object's internal state -
Observer-- A way of notifying change to a number of classes -
State -- Alter an object's behavior when its state changes
-
Strategy -- Encapsulates an algorithm inside a class -
Template Method -- Defer the exact steps of an algorithm to a subclass
-
Visitor -- Defines a new operation to a class without change