interface Interface<T>{}
class Class<T>:Interface<T>
{
public Class(IInterfaceParam<T> param){}
}
interface IInterfaceParam<T>{}
class InterfaceParam<T>:IInterfaceParam<T>{}
class Tclass{}
class Program
{
void Main(){
var v1= container.Resolve<Interface<Tclass>>();
}
}
how to config in unity.config xml file?? help! thanks!
but i got the exception:InvalidOperationException: Configuration is incorrect, the type Class`1 does not have a constructor that takes parameters named param...why???
how to config in unity.config xml file?? help! thanks!
bellow is my config:
but i got the exception:InvalidOperationException: Configuration is incorrect, the type Class`1 does not have a constructor that takes parameters named param...why???