Skip to content

Example of dependency injection desgin pattern using C# .NET

Notifications You must be signed in to change notification settings

neonidian/DependencyInjectionExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dependency Injection with C#

Dependency injection is a design pattern to achieve Inversion of Control(IoC) where an object supplies dependencies for another object by making use of interfaces. This makes the application loosely coupled and enables easier maintenance.

Dependency injection techniques

Running this program

  1. Install dotnet. Verify the installation by opening the command line and typing dotnet --version. Executing this command must output a version of dotnet.
  2. In the command line, go to the location of this project. E.g. in Linux if this project is in the home directory, type cd $HOME/DependencyInjectionExample and press Enter key.
  3. Execute the command - dotnet run to execute the program and view the output in console.

About

Example of dependency injection desgin pattern using C# .NET

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages