Version 3.1 Released to NuGet

Coordinator
Nov 5, 2011 at 10:42 PM

I've fixed a few bugs and added support for Open Generics.  Now you can

public interface IFoo<T>
{
    T Value {get; set;}
}

public class Foo<T> : IFoo<T>
{
    public T Value {get; set;}
}

...
var container = new IocContainer();
container.Register(typeof(IFoo<>), typeof(Foo<>));

...
var intFo      = container.Resolve<IFoo<int>);      // returns a Foo<int>
var stringFool = container.Resolve<IFoo<string>>(); // returns a Foo<string>