Is there a way, using NInject conventions, to bind a generic interface that has a different number of type parameters than the concrete class that implements it?
For example:
public interface IRepository<T1, T2>
{
...
}
public class Repository<T1, T2, T3> : IRepository<T1, T2>
{
...
}
T3
argument when the resolver only suppliesT1
, andT2
. How would you do this by hand? – StevenTo (typeof (Repository <,, C3>))
. This will unfortunately nor compile. – Steven