GofPatterns 1.3.4

dotnet add package GofPatterns --version 1.3.4
NuGet\Install-Package GofPatterns -Version 1.3.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GofPatterns" Version="1.3.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GofPatterns --version 1.3.4
#r "nuget: GofPatterns, 1.3.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install GofPatterns as a Cake Addin
#addin nuget:?package=GofPatterns&version=1.3.4

// Install GofPatterns as a Cake Tool
#tool nuget:?package=GofPatterns&version=1.3.4

Design Patterns for C# (Gang of Four)


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).



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


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.


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

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.3.4 107 2/5/2024
1.3.3 76 2/5/2024
1.3.2 83 2/1/2024
1.3.0 105 1/21/2024
1.2.9 81 1/21/2024
1.2.7 102 1/14/2024
1.2.4 90 1/10/2024
1.2.2 109 1/8/2024
1.2.1 107 1/7/2024
1.2.0 105 1/6/2024
1.1.1 126 12/19/2023
1.1.0 113 12/17/2023
1.0.0 110 12/17/2023

Tested release