Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. abstract class Base
  2. {
  3. private SomeDependency dependencyField;
  4.  
  5. Base(SomeDependency dependencyParam)
  6. {
  7. this.dependencyField = dependecyParam
  8. }
  9. }
  10.  
  11. class SubClass : Base
  12. {
  13. SubClass(SomeDependency dependencyParam) : base(dependencyParam) {}
  14. }
  15.  
  16.  
  17. container.RegisterType(typeof(SomeDependency));
  18. container.RegisterType(typeof(SubClass));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement