DEV Community


Dependency Injection in .NET Console Application

Joe Enos
Software developer/architect, mostly working with .NET and SQL Server.
・1 min read

ASP.NET comes built-in with Dependency Injection, so you can easily inject lots of different things, either your own stuff or built-in from the framework.

With console applications, you have to do just a little bit more work yourself. Here's how to do it:

Discussion (0)