Skip to content
#

dependency-injection-pattern

Dependency injection (DI) is an implementation of the dependency inversion principle with the aim of separation of concerns by separating the depndency’s implementation from the class that’s using it. That kind of abstraction makes it possible to have different implementations with the same public methods so the class using it, doesn’t need to care which of the implementations is used. This is also especially useful for unit testing.

There are different types of dependency injection:

  • constructor injection
  • setter injection
  • interface injection
  • Here are 6 public repositories matching this topic...

    PrimeFuncPack Dependency is a framework for .NET providing a functional programming based technology to build consistent dependency trees validated in the compile time.

    • Updated Dec 14, 2023
    • C#

    PrimeFuncPack Dependency Registry is a library for .NET providing a dependency registrar intended for registering services, including dependency trees built by PrimeFuncPack Dependency, in the .NET dependency injection mechanism.

    • Updated Nov 28, 2023
    • C#