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.
نحن نختار بعناية مستودعات GitHub مفتوحة المصدر التي تطابق “best c sharp dependency injection libraries”. النتائج مرتبة حسب صلتها ببحثك — استخدم الفلاتر أدناه للتضييق، أو قم بتحسين البحث باستخدام الذكاء الاصطناعي.
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.