Skip to content

This repo will cover some topic with C# programing language

Notifications You must be signed in to change notification settings

pdxuan/csharp-design-patterns

Repository files navigation

CSharp

This repo will cover some topic with C# programing language like SOLID principles, Design Patterns

SOLID:

  1. Single responsibility principle
  2. Open/closed principle
  3. Liskov substitution principle
  4. Interface segregation principle
  5. Dependency inversion principle

Design Patterns:

  1. Singleton: Ensures only one instance exists.
  2. Factory Method: Delegates object instantiation to subclasses.
  3. Abstract Factory: Creates related object families without specifying their concrete classes.
  4. Prototype: Clones objects for a prototypical instance.
  5. Builder: Constructs complex objects step by step.
  6. Adapter: Bridges incompatible interfaces.
  7. Bridge: Separates abstraction from implementation.
  8. Composite: Treats single and composite objects uniformly.
  9. Decorator: Adds behaviors to objects dynamically.
  10. Facade: Simplifies complex system interfaces.
  11. Flyweight: Shares objects to reduce memory.
  12. Proxy: Controls object access.
  13. Observer: Notifies changes to multiple objects.
  14. Strategy: Encapsulates interchangeable algorithms.
  15. Command: Encapsulates a request as an object.
  16. State: Changes object behavior with internal state.
  17. Visitor: Adds operations to object structures without modifying them.
  18. Memento: Captures and restores object states externally.
  19. Iterator: Sequentially accesses elements of a collection.
  20. Mediator: Centralizes complex communications.
  21. Chain of Responsibility: Passes requests along a chain of handlers.
  22. Template Method: Defines the skeleton of an algorithm.

About

This repo will cover some topic with C# programing language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages