Ejemplo n.º 1
0
        static OperatorInfo()
        {
            var left = new ParameterNameAndDescription("dividend",
                                                       "a dividend (counter) - a value that is being divided");
            var right = new ParameterNameAndDescription("divisor",
                                                        "a divisor (denominator) - a value which dividend is divided by");

            Div = new OperatorInfo(left, right,
                                   "Division operation, calculates value dividend/divisor with unit that derives from dividend unit");

            //  the first factor is the multiplicand and the second the multiplier
            // Both numbers can be referred to as factors.
            left = new ParameterNameAndDescription("leftFactor",
                                                   "left factor (multiplicand)");
            right = new ParameterNameAndDescription("rightFactor",
                                                    "rigth factor (multiplier)");
            Mul = new OperatorInfo(left, right, "Multiplication operation");
        }
Ejemplo n.º 2
0
 public OperatorInfo(ParameterNameAndDescription left, ParameterNameAndDescription right, string description)
 {
     Left        = left;
     Right       = right;
     Description = description;
 }