コード例 #1
0
 public ComponentC(IComponentA compA, IComponentB compB)
 {
     this.compA = compA;
     this.compB = compB;
     constructorUsed = 2;
 }
コード例 #2
0
 public ComponentC(IComponentA compA, IComponentB compB)
 {
     this.compA      = compA;
     this.compB      = compB;
     constructorUsed = 2;
 }
コード例 #3
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));
 }