Visit() public method

Visit a node of the expression.
public Visit ( Expression node ) : Expression
node System.Linq.Expressions.Expression The node to visit.
return System.Linq.Expressions.Expression
        /// <summary>
        /// Translate an expression tree into a compiled OData query.
        /// </summary>
        /// <param name="expression">The expression tree.</param>
        /// <returns>An OData query.</returns>
        public static string Create(Expression expression)
        {
            Debug.Assert(expression != null, "expression cannot be null!");

            // Walk the expression tree and build the filter.
            FilterBuildingExpressionVisitor visitor = new FilterBuildingExpressionVisitor();

            visitor.Visit(expression);
            return(visitor.filter.ToString());
        }
        /// <summary>
        /// Translate an expression tree into a compiled OData query.
        /// </summary>
        /// <param name="expression">
        /// The expression tree.
        /// </param>
        /// <param name="contractResolver">
        /// The contract resolver used to determine property names from
        /// members used within expressions.
        /// </param>
        /// <returns>
        /// An OData query.
        /// </returns>
        public static string Create(Expression expression, MobileServiceContractResolver contractResolver)
        {
            Debug.Assert(expression != null);
            Debug.Assert(contractResolver != null);

            // Walk the expression tree and build the filter.
            FilterBuildingExpressionVisitor visitor = new FilterBuildingExpressionVisitor(contractResolver);

            visitor.Visit(expression);
            return(visitor.filter.ToString());
        }
 /// <summary>
 /// Translate an expression tree into a compiled OData query.
 /// </summary>
 /// <param name="expression">The expression tree.</param>
 /// <returns>An OData query.</returns>
 public static string Create(Expression expression)
 {
     Debug.Assert(expression != null, "expression cannot be null!");
             
     // Walk the expression tree and build the filter.
     FilterBuildingExpressionVisitor visitor = new FilterBuildingExpressionVisitor();
     visitor.Visit(expression);
     return visitor.filter.ToString();
 }
 /// <summary>
 /// Translate an expression tree into a compiled OData query.
 /// </summary>
 /// <param name="expression">
 /// The expression tree.
 /// </param>
 /// <param name="contractResolver">
 /// The contract resolver used to determine property names from
 /// members used within expressions.
 /// </param>
 /// <returns>
 /// An OData query.
 /// </returns>
 public static string Create(Expression expression, MobileServiceContractResolver contractResolver)
 {
     Debug.Assert(expression != null);
     Debug.Assert(contractResolver != null);
             
     // Walk the expression tree and build the filter.
     FilterBuildingExpressionVisitor visitor = new FilterBuildingExpressionVisitor(contractResolver);
     visitor.Visit(expression);
     return visitor.filter.ToString();
 }