/// <summary>
        /// Visitor pattern method for <see cref="MethodExpression"/>.
        /// </summary>
        /// <param name="expression">The MethodExpression that is being visited.</param>
        /// <exception cref="ArgumentNullException"><paramref name="expression"/> is null</exception>
        public override void Visit(MethodExpression expression)
        {
            // #433613: PreSharp warning 56506: Parameter 'expression' to this public method must be validated: A null-dereference can occur here.
            EntityUtil.CheckArgumentNull(expression, "expression");

            if (expression.Instance != null)
            {
                VisitExpression(expression.Instance);
            }
            VisitExpressionList(expression.Arguments);
        }
 /// <summary>
 /// Typed visitor pattern method for MethodExpression.
 /// </summary>
 /// <param name="expression">The Expression that is being visited.</param>
 /// <returns>An instance of TResultType.</returns>
 public abstract TResultType Visit(MethodExpression expression);
Example #3
0
 /// <summary>
 /// Visitor pattern method for MethodExpression.
 /// </summary>
 /// <param name="expression">The MethodExpression that is being visited.</param>
 public abstract void Visit(MethodExpression expression);