/// <summary> /// Visits the children of the <see cref="TypeBinaryExpression" />. /// </summary> /// <param name="node">The expression to visit.</param> /// <returns> /// The modified expression, if it or any subexpression was modified; /// otherwise, returns the original expression. /// </returns> protected internal virtual Expression VisitTypeBinary(TypeBinaryExpression node) { if (node == null) { throw new ArgumentNullException(nameof(node)); } return(node.Update(Visit(node.Expression))); }
protected override ExpressionTree VisitTypeBinary(TypeBinaryExpression node) { CheckChildrenCount(1); var e = ExtractChildExpression(0); var expression = node.Update(e); return(CreateExpressionTree(expression)); }
/// <summary> /// Visits the children of the <see cref="TypeBinaryExpression"/>. /// </summary> /// <param name="node">The expression to visit.</param> /// <returns>The modified expression, if it or any subexpression was modified; /// otherwise, returns the original expression.</returns> protected internal virtual Expression VisitTypeBinary(TypeBinaryExpression node) { return(node.Update(Visit(node.Expression))); }