Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public interface IA {}
- public interface IB : IA {}
- internal class C : IB {}
- Container.RegisterType<IB, C>();
- Container.RegisterType<IA, C>();
- Container.RegisterType<IA, IB>();
- Container.RegisterType<IA>(new InjectionFactory(x=>x.Resolve<IB>()));
Add Comment
Please, Sign In to add comment