Esempio n. 1
0
 public Container RegisterType <TBase, TDerived>() where TDerived : class, TBase where TBase : class
 {
     _providers[typeof(TBase)] = new ActivatorObjectProvider <TDerived>(this);
     return(this);
 }
Esempio n. 2
0
 public Container RegisterType <T>() where T : class
 {
     _providers[typeof(T)] = new ActivatorObjectProvider <T>(this);
     return(this);
 }