Home

Home - News - Documentation

HaveBox

HaveBox is a very fast and lightweight IoC containter. The goal is to keep it fast and light, and at the same time easy to use.

Latest version of HaveBox is 2.0.0, see News for release notes

Nuget: https://www.nuget.org/packages/HaveBox/

Twitter tag: @HaveBox

Don't forget to checkout HaveBoxStates and HaveBoxJSON

Why use HaveBox?

One of the strengths of C#, is fast instantiation. Many IoC containers remove this edge, which C# have comapred to other languages, by being slow. HaveBox is a strong choice, because instantiation is done with a minimal overhead, and thereby giving developers the possibility to DI and still keep the good performance of C# and .NET.

Highlights:

  • Auto-wiring
  • Auto registration
  • Custom lifetimes
  • Container configuring through sub-configs
  • Fluent
  • Many implememtationes to one interface
  • Instantiation interception
  • Supporting .Net3.5, .Net4.0, .Net4.5, .Net4.5.1, Silverlight4, Silverlight5, Windows Phone 7, Windos Phone 8
  • Small in size
  • Fast
  • Easy to use
  • Config Injection (Only for .NET 3.5, .NET 4.0, .NET 4.5, .NET 4.5.1)
  • Auto IEnumerables
  • Open generics

News

Follow the latest news here.

Documentation

Please see the Documentation, for how to use HaveBox

Bugs and suggestions

If you find a bug or have suggestion to improve HaveBox, don't hesitate to use the Issue Tracker.

Questions

In case of you have any questions, please use StackOverflow as first choice, so more people can gain from the answers.

Donations

If HaveBox have been beneficial or usefull for you, please consider contributing to my Pepsi budget by donating to HaveBox2013@gmail.com on PayPal.

Updated

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.