Skip to content

Three ways of doing dependency injection in C#, depicted in three small projects.

Notifications You must be signed in to change notification settings

gustafl/Samurais

Repository files navigation

Samurais

This repo contains a solution with three C# projects, each illustrating a different way of doing dependency injection by hand.

  • Constructor Injection
  • Setter Injection
  • Interface Injection

The first is based on an example from the Ninject wiki. The other two are the same example adapted to the other two patterns for easy comparison.

About

Three ways of doing dependency injection in C#, depicted in three small projects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages