You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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???