Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

vivopensource/gofpatternscsharp

Repository files navigation

Design Patterns for C# (Gang of Four)

Introduction

This repository provides the implementation of the design patterns mentioned by the Gang of Four for C#, to solve common problems in software design. It takes away the burden of writing the underlying code for the design patterns, and focus on the problem at hand, i.e. using the patterns straight away for developing a well designed software solution.

It contains the ready-made classes and interfaces of the design patterns. They are written in the most standard way possible so that they can be easily understood and implemented. There are examples provided for each patterns provided by the library, and these example are referred for understanding and using them appropriately (see Available Patterns section).

Usage

Install

  • Target frameworks: Net 6, Net 4.5
  • Nuget package is available at: GofPatterns.
dotnet add package GofPatterns

Execute

There are examples for each of the design patterns mentioned in Available Patterns section, just click on the link of the design pattern to go to the respective page of the design pattern that provides information and example.

Available Patterns

Behavioral Patterns

Structural Patterns

Creational Patterns

Code coverage

  • The code coverage is exceptional for the library, and the examples provided for each pattern
  • The library is tested for all the patterns, and the examples are also tested for the patterns they are demonstrating.

Result

To view the latest coverage result, please see the Pull request tab of the repository.

AltStyle によって変換されたページ (->オリジナル) /