This project is a fork of the https://ffastinjector.codeplex.com/ library by David Walker (https://plus.google.com/109602553530284384616/).
The goal of the project is to provide a featureful high performance micro-IoC container suitable for use in mobile environments. The key distinguishing feature in relation to other Micro containers is support for annotation based configuration.
- Auto-Wiring
- Configuration through code
- Configuration through attributes
- Fast (top performer on IoC Container Shootout)
- Small
https://github.com/iamahern/IfInjector/wiki
Either clone this repository or grab the binaries from nuget (https://www.nuget.org/packages/IfInjector).
// =================================
// Setup
// =================================
using IfInjector;
[ImplementedBy(typeof(MyType))]
interface IMyType { }
[Singleton]
class MyType : IMyType {}
// =================================
// Usage
// =================================
var injector = new Injector();
IMyType obj = injector.Resolve<IMyType>();
This source is under the BSD license (http://ffastinjector.codeplex.com/license).