ExpressionParser.LongOperand.Divide C# (CSharp) Méthode

Divide() public méthode

public Divide ( IOperand rhs ) : IOperand
rhs IOperand
Résultat IOperand
        public IOperand Divide(IOperand rhs)
        {
            if (!(rhs is LongOperand))
                throw new RPN_Exception("Argument invalid in LongOperand.Divide : rhs");
            LongOperand oprResult = new LongOperand("Result", Type.GetType("System.Int64"));
            oprResult.Value = (long)this.Value / (long)((Operand)rhs).Value;
            return oprResult;
        }
        public IOperand Modulo(IOperand rhs)