public override Expression VisitTernaryExpression(TernaryExpression expression) { if (expression == null) return null; return base.VisitTernaryExpression((TernaryExpression)expression.Clone()); }
public override Expression VisitTernaryExpression(TernaryExpression ternaryExpression) { ternaryExpression = (TernaryExpression)ternaryExpression.Clone(); ternaryExpression.Operand1 = simplify(ternaryExpression.Operand1); ternaryExpression.Operand2 = simplify(ternaryExpression.Operand2); ternaryExpression.Operand3 = simplify(ternaryExpression.Operand3); return ternaryExpression; }