public bool IsValid(List <RawTableRow> rawDataRows) { var leftIsValid = EvaluateSide(rawDataRows, _Expression.Left); var rightIsValid = EvaluateSide(rawDataRows, _Expression.Right); return(HelperConditional.IsTrue(_Expression.Operator, leftIsValid, rightIsValid) ^ _InvertResult); }
private bool EvaluateExpression(List <RawTableRow> rawDataRows, SqlBinaryBooleanExpression expression) { var leftIsValid = Evaluate(rawDataRows, expression.Left); var rightIsValid = Evaluate(rawDataRows, expression.Right); return(HelperConditional.IsTrue(expression.Operator, leftIsValid, rightIsValid)); }