示例#1
0
 public ComponentE(IComponentA componentA)
 {
     ComponentA = componentA;
 }
 public ComponentE(IComponentA componentA)
 {
     ComponentA = componentA;
 }
 public ComponentC(IComponentA compA)
 {
     this.compA      = compA;
     constructorUsed = 1;
 }
 public ComponentC(IComponentA compA, IComponentB compB)
 {
     this.compA      = compA;
     this.compB      = compB;
     constructorUsed = 2;
 }
 public ComponentB(IComponentA compA)
 {
     this.compA = compA;
 }
 public ComponentB(IComponentA compA)
 {
     this.compA = compA;
 }
 public ComponentC(IComponentA compA, IComponentB compB)
 {
     this.compA = compA;
     this.compB = compB;
     constructorUsed = 2;
 }
 public ComponentC(IComponentA compA)
 {
     this.compA = compA;
     constructorUsed = 1;
 }
示例#9
0
 public TransparentFacade(IComponentA componentA, IComponentB componentB, IComponentC componentC)
 {
     _componentA = componentA ?? throw new ArgumentNullException(nameof(componentA));
     _componentB = componentB ?? throw new ArgumentNullException(nameof(componentB));
     _componentC = componentC ?? throw new ArgumentNullException(nameof(componentC));
 }