src/Inflatable/LinqExpression/WhereClauses/WhereVisitor.cs
/// <summary>
/// Visits the children of the <see cref="T:System.Linq.Expressions.BinaryExpression"/>.
/// </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>
/// <exception cref="NotSupportedException"></exception>
Visits the children of the .
Visits the children of the .
protected override Expression? VisitBinary(BinaryExpression node)
        {
            if (node is null)
                return node;
            Visit(node.Left);
            var LeftSide = CurrentClause;
            Visit(node.Right);
            CurrentClause = new BinaryOperator(LeftSide, CurrentClause, node.NodeType);
            return node;
        }
protected override Expression ? VisitBinary ( BinaryExpression node ) { if ( node is null ) return node ; Visit ( node . Left ) ; var LeftSide = CurrentClause ; Visit ( node . Right ) ; CurrentClause = new BinaryOperator ( LeftSide , CurrentClause , node . NodeType ) ; return node ; }
Visits the children of the .
Visits the children of the .
The modified expression, if it or any subexpression was modified; otherwise, returns the
original expression.
The modified expression if it or any subexpression was modified ; otherwise returns the original expression .
None
node
BinaryExpression
The expression to visit.
The expression to visit .