For a dependency injection library for C#, the strongest matches are autofac/autofac (Autofac is a comprehensive and high-performance dependency injection container), ninject/ninject (Ninject is a long-standing dependency injection framework for) and unitycontainer/unity (Unity is a long-standing dependency injection container for). simpleinjector/simpleinjector is also worth a look. Each is ranked by relevance to your query, popularity and recent activity.
我们为您精选了匹配 “best c sharp dependency injection libraries” 的开源 GitHub 仓库。结果按与您查询的相关性进行排名 — 您可以使用下方筛选器缩小范围,或通过 AI 进行优化。
Autofac is a dependency injection framework and inversion of control container for .NET. It functions as a component registration engine that decouples class implementations from their dependencies by injecting required services via constructors or properties. The project includes an assembly scanning library to automatically discover and register components within compiled binaries based on specific type criteria. It provides a service lifetime manager to control object memory duration using singletons, instance-per-dependency, or isolated request scopes. The framework covers a broad range
Autofac is a comprehensive and high-performance dependency injection container for .NET that natively supports constructor injection, advanced service lifetime management, and assembly scanning, while maintaining full compatibility with the Microsoft.Extensions.DependencyInjection abstraction.
the ninja of .net dependency injectors
Ninject is a long-standing dependency injection framework for .NET that supports constructor injection and service lifetime management, though it predates the modern Microsoft.Extensions.DependencyInjection abstraction and is less optimized for current high-performance requirements.
This repository contains all relevant information about Unity Container suit
Unity is a long-standing dependency injection container for .NET that supports constructor injection and service lifetime management, though it is a legacy framework that predates the modern Microsoft.Extensions.DependencyInjection abstraction.
Simple Injector is a high-performance dependency injection container for .NET that supports constructor injection and service lifetime management, though it intentionally avoids full compatibility with Microsoft.Extensions.DependencyInjection to maintain its own design philosophy.