Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7551723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:34:10+00:00 2026-05-30T10:34:10+00:00

Possible Duplicate: How do the major C# DI/IoC frameworks compare? There being so many

  • 0

Possible Duplicate:
How do the major C# DI/IoC frameworks compare?

There being so many DI containers, I feel kind of lost. I’m new to the DI pattern.

I’m reading the book Dependency Injection in .NET and I’ve found DI to be incredible useful in improving a code base, making it loose coupled and more testable.

I now want to introduce a DI container for my dummy project, but there are just so many to choose from.

How am I supposed to choose between Castle Windsor, Unity, StructureMap, Spring.NET, Autofac, Ninject, Funq, LinFu, etc, etc?

I guess a coherent take would be to “just pick one” and start using it (since I figure they’re pretty easily interchangeable, specially in the early stages), but I would like to make a more informed decision.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T10:34:11+00:00Added an answer on May 30, 2026 at 10:34 am

    This is like buying a car. You might like a Toyota, but it’s just 2.5L engine. You might like Ferrari, but it’s too red. You might like Mazda, but your boss doesn’t allow you to drive it. You might like Hummer, but then your colleagues would laugh at you. Mix the manufacturers to your taste, there’s always going to be something missing for somebody or at some different moment.

    My take is – first and foremost, DI is usually better then not having DI. Pick anything and you’ll be better off. I’d pick something that:

    • Has good support in community (so you can get answers)
    • Has a good backing company behind it (so you don’t get to rewrite your code when it goes bust)
    • Feels good to you (so you don’t swear in front of the kids, not cool)
    • Is not an overkill for the project
    • Is not just DI, but offers an ecosystem of things that will reduce the time you spend on tasks that you know you can do, just not right now – and then you can focus on things that matter
    • Is used by a lot of people (so you know that many parts are also tested in real life and bugs filled)
    • Isn’t 5 years old (such as that documentation says it is supported on Windows 98 or something)

    My 2 cents – http://www.springframework.net/. I mean, their documentation contents page is like 20 pages long…

    Or you just might want to look at some more answers to a similar question:

    • Which .NET Dependency Injection frameworks are worth looking into?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Reference: Comparing PHP's print and echo Is there any major and fundamental
Possible Duplicate: emacs lisp, how to get buffer major mode? Is there a way
Possible Duplicate: What are major differences between C# and Java? I believe it was
Possible Duplicate: Difference Between ViewData and TempData? What is major difference between TempData and
Possible Duplicate: Encrypting/Hashing plain text passwords in database Recently, I discovered that major web
Possible Duplicate: Exception in thread “main” java.lang.UnsupportedClassVersionError: a (Unsupporte d major.minor version 51.0) i
Possible Duplicate: What’s the difference between IComparable & IEquatable interfaces? What is the major
Possible Duplicate: Is there some ninja trick to make a variable constant after its
Possible Duplicate: When should I use a javascript framework library? All, I'm fairly new
Possible Duplicate: Opening url in new tab while i am doing window.open(), my page

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.