Coder Social home page Coder Social logo

ganb / designpatterns Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adrianbailador/designpatterns

0.0 0.0 0.0 390 KB

This repository contains a Visual Studio Code solution for implementing various design patterns in C# using .NET Core. Each design pattern is implemented in a separate console project within the solution.

C# 100.00%

designpatterns's Introduction

Design Patterns

This repository contains a Visual Studio Code solution for implementing various design patterns in C# using .NET Core. Each design pattern is implemented in a separate console project within the solution.

Project Structure

The repository is organized as follows:

DesignPatternsSolution/
│
├── SingletonPattern/
│   ├── Program.cs
│   └── ...
│
├── FactoryPattern/
│   ├── Program.cs
│   └── ...
│
├── BuilderPattern/
│   ├── Program.cs
│   └── ...
│
├── ...

Each folder represents a design pattern and contains a console project that implements that specific pattern.

How to Run

  1. Open a terminal and navigate to the directory of the project you want to run. For example, to run the Singleton pattern:
cd /path/to/project/DesignPatternsSolution/SingletonPattern
  1. Build the project using the dotnet build command:
dotnet build
  1. Once built, run the program using the dotnet run command:
dotnet run

This command will build the project if necessary and then execute the application.

If you want to run a specific project instead of all projects in the solution, you can specify the project name after the dotnet run command. For example:

dotnet run --project SingletonPattern

This will run only the SingletonPattern project. Replace SingletonPattern with the name of the project you want to run.

Implemented Design Patterns

  1. Singleton
  2. Factory
  3. Builder
  4. Dependency Injection
  5. Adapter
  6. Decorator
  7. Facade
  8. Bridge
  9. Observer
  10. Command
  11. Strategy

Each design pattern is implemented in its own project and contains code examples demonstrating its usage.

designpatterns's People

Contributors

adrianbailador avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.