コード例 #1
0
ファイル: Sub.cs プロジェクト: o-khytrov/Practice
 public Sub(ArithmeticUnit unit, int operand)
 {
     this.unit    = unit;
     this.operand = operand;
 }
コード例 #2
0
ファイル: Div.cs プロジェクト: master-vk/Tasks-ITVDN
        public Div(ArithmeticUnit unit, int operand)
        {
            this.unit = unit;
            this.operand = operand;

        }
コード例 #3
0
ファイル: Sub.cs プロジェクト: ty-stylelabs/DesignPatterns-3
 public Sub(ArithmeticUnit aUnit, int operand)
 {
     this.operand = operand;
     this.aUnit   = aUnit;
 }
コード例 #4
0
 public Or(ArithmeticUnit arithmeticUnit, int operand)
 {
     this.arithmeticUnit = arithmeticUnit;
     this.operand        = operand;
 }
コード例 #5
0
 public Addition(ArithmeticUnit unit, int operand)
 {
     this.ArithmeticUnit = unit;
     this.Operand        = operand;
 }
コード例 #6
0
 public Calculator()
 {
     _arithmeticUnit = new ArithmeticUnit();
     _controlUnit    = new ControlUnit();
 }
コード例 #7
0
 public Substract(ArithmeticUnit unit, int operand)
 {
     this.ArithmeticUnit = unit;
     this.Operand        = operand;
 }
コード例 #8
0
 public Calculator()
 {
     _invoker  = new ControlUnit();
     _receiver = new ArithmeticUnit();
 }
コード例 #9
0
 public Add(ArithmeticUnit unit, double operand)
 {
     Unit    = unit;
     Operand = operand;
 }
コード例 #10
0
 public Multiply(ArithmeticUnit unit, double operand)
 {
     Unit    = unit;
     Operand = operand;
 }
コード例 #11
0
 public Div(ArithmeticUnit receiver, double operand)
     : base(receiver, operand)
 {
 }
コード例 #12
0
 public Command(ArithmeticUnit receiver, double operand)
 {
     _receiver = receiver;
     _operand  = operand;
 }
コード例 #13
0
 public Multiplication(ArithmeticUnit unit, int operand)
 {
     this.ArithmeticUnit = unit;
     this.Operand        = operand;
 }