SHARE
TWEET

Untitled

a guest Jan 21st, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public interface IA {}
  2. public interface IB : IA {}
  3. internal class C : IB {}
  4.    
  5. Container.RegisterType<IB, C>();
  6.    
  7. Container.RegisterType<IA, C>();
  8.    
  9. Container.RegisterType<IA, IB>();
  10.    
  11. Container.RegisterType<IA>(new InjectionFactory(x=>x.Resolve<IB>()));
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top