DataDictionary.Types.Structure.ValidBinaryOperation C# (CSharp) Méthode

ValidBinaryOperation() public méthode

Indicates that binary operation is valid for this type and the other type
public ValidBinaryOperation ( BinaryExpression operation, Type otherType ) : bool
operation DataDictionary.Interpreter.BinaryExpression
otherType Type
Résultat bool
        public override bool ValidBinaryOperation(BinaryExpression.Operator operation, Type otherType)
        {
            bool retVal;

            if (operation == BinaryExpression.Operator.Less || operation == BinaryExpression.Operator.LessOrEqual ||
                operation == BinaryExpression.Operator.Greater ||
                operation == BinaryExpression.Operator.GreaterOrEqual)
            {
                retVal = false;
            }
            else
            {
                retVal = base.ValidBinaryOperation(operation, otherType);
            }

            return retVal;
        }