DynamicExpressionVisitor Class

.NET Framework 4.6 and 4.5

Represents a visitor or rewriter for dynamic expression trees.

System.Object
  System.Linq.Expressions.ExpressionVisitor
    System.Linq.Expressions.DynamicExpressionVisitor

Namespace:  System.Linq.Expressions
Assemblies:   System.Dynamic.Runtime (in System.Dynamic.Runtime.dll)
  System.Core (in System.Core.dll)

public abstract class DynamicExpressionVisitor : ExpressionVisitor

The DynamicExpressionVisitor type exposes the following members.

  NameDescription
Protected methodDynamicExpressionVisitorInitializes a new instance of DynamicExpressionVisitor.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodVisit(Expression)Dispatches the expression to one of the more specialized visit methods in this class. (Inherited from ExpressionVisitor.)
Public methodVisit(ReadOnlyCollection<Expression>)Dispatches the list of expressions to one of the more specialized visit methods in this class. (Inherited from ExpressionVisitor.)
Public methodVisitAndConvert<T>(T, String)Visits an expression, casting the result back to the original expression type. (Inherited from ExpressionVisitor.)
Public methodVisitAndConvert<T>(ReadOnlyCollection<T>, String)Visits an expression, casting the result back to the original expression type. (Inherited from ExpressionVisitor.)
Protected methodVisitBinaryVisits the children of the BinaryExpression. (Inherited from ExpressionVisitor.)
Protected methodVisitBlockVisits the children of the BlockExpression. (Inherited from ExpressionVisitor.)
Protected methodVisitCatchBlockVisits the children of the CatchBlock. (Inherited from ExpressionVisitor.)
Protected methodVisitConditionalVisits the children of the ConditionalExpression. (Inherited from ExpressionVisitor.)
Protected methodVisitConstantVisits the ConstantExpression. (Inherited from ExpressionVisitor.)
Protected methodVisitDebugInfoVisits the DebugInfoExpression. (Inherited from ExpressionVisitor.)
Protected methodVisitDefaultVisits the DefaultExpression. (Inherited from ExpressionVisitor.)
Protected methodVisitDynamicVisits the children of the DynamicExpression.
Protected methodVisitElementInitVisits the children of the ElementInit. (Inherited from ExpressionVisitor.)
Protected methodVisitExtensionVisits the children of the extension expression. (Inherited from ExpressionVisitor.)
Protected methodVisitGotoVisits the children of the GotoExpression. (Inherited from ExpressionVisitor.)
Protected methodVisitIndexVisits the children of the IndexExpression. (Inherited from ExpressionVisitor.)
Protected methodVisitInvocationVisits the children of the InvocationExpression. (Inherited from ExpressionVisitor.)
Protected methodVisitLabelVisits the children of the LabelExpression. (Inherited from ExpressionVisitor.)
Protected methodVisitLabelTargetVisits the LabelTarget. (Inherited from ExpressionVisitor.)
Protected methodVisitLambda<T>Visits the children of the Expression<TDelegate>. (Inherited from ExpressionVisitor.)
Protected methodVisitListInitVisits the children of the ListInitExpression. (Inherited from ExpressionVisitor.)
Protected methodVisitLoopVisits the children of the LoopExpression. (Inherited from ExpressionVisitor.)
Protected methodVisitMemberVisits the children of the MemberExpression. (Inherited from ExpressionVisitor.)
Protected methodVisitMemberAssignmentVisits the children of the MemberAssignment. (Inherited from ExpressionVisitor.)
Protected methodVisitMemberBindingVisits the children of the MemberBinding. (Inherited from ExpressionVisitor.)
Protected methodVisitMemberInitVisits the children of the MemberInitExpression. (Inherited from ExpressionVisitor.)
Protected methodVisitMemberListBindingVisits the children of the MemberListBinding. (Inherited from ExpressionVisitor.)
Protected methodVisitMemberMemberBindingVisits the children of the MemberMemberBinding. (Inherited from ExpressionVisitor.)
Protected methodVisitMethodCallVisits the children of the MethodCallExpression. (Inherited from ExpressionVisitor.)
Protected methodVisitNewVisits the children of the NewExpression. (Inherited from ExpressionVisitor.)
Protected methodVisitNewArrayVisits the children of the NewArrayExpression. (Inherited from ExpressionVisitor.)
Protected methodVisitParameterVisits the ParameterExpression. (Inherited from ExpressionVisitor.)
Protected methodVisitRuntimeVariablesVisits the children of the RuntimeVariablesExpression. (Inherited from ExpressionVisitor.)
Protected methodVisitSwitchVisits the children of the SwitchExpression. (Inherited from ExpressionVisitor.)
Protected methodVisitSwitchCaseVisits the children of the SwitchCase. (Inherited from ExpressionVisitor.)
Protected methodVisitTryVisits the children of the TryExpression. (Inherited from ExpressionVisitor.)
Protected methodVisitTypeBinaryVisits the children of the TypeBinaryExpression. (Inherited from ExpressionVisitor.)
Protected methodVisitUnaryVisits the children of the UnaryExpression. (Inherited from ExpressionVisitor.)
Top

This class is designed to be inherited to create more specialized classes whose functionality requires traversing, examining, or copying a dynamic expression tree.

.NET Framework

Supported in: 4.6, 4.5

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft