Dependency injection is a basic object-oriented pattern for complying with Dependency Inversion Principle (DIP). Note they are not the same thing. Injection is just a sort of implementation of DIP. A C# example would be to pass dependencies to your constructor rather than using the ‘new’ keyword.
It’s important to differentiate this simple pattern from a full-fledged “Dependency Injection Container”.
What are Dependency Injection Containers?
Dependency injection containers are tools that provide helpful features over a code base that implements the dependency injection pattern described above. These containers are primarily used to define your dependencies and automatically resolve instances of dependencies when instantiating an object. Another feature often used is the ability to control the lifetime scoping of your instances. Think singleton, transient, and unit of work. Popular containers you’ve probably heard of from the C# arena would be Ninject, Autofac, StructureMap, etc.