ExpressionVisitor Class

Definition

Represents a visitor or rewriter for expression trees.

public ref class ExpressionVisitor abstract
public abstract class ExpressionVisitor
type ExpressionVisitor = class
Public MustInherit Class ExpressionVisitor
Inheritance
ExpressionVisitor
Derived

Remarks

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

Constructors

ExpressionVisitor()

Initializes a new instance of ExpressionVisitor.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)
Visit(Expression)

Dispatches the expression to one of the more specialized visit methods in this class.

Visit(ReadOnlyCollection<Expression>)

Dispatches the list of expressions to one of the more specialized visit methods in this class.

Visit<T>(ReadOnlyCollection<T>, Func<T,T>)

Visits all nodes in the collection using a specified element visitor.

VisitAndConvert<T>(ReadOnlyCollection<T>, String)

Visits all expressions in the collection, casting the results back to the original expression type.

VisitAndConvert<T>(T, String)

Visits an expression, casting the result back to the original expression type.

VisitBinary(BinaryExpression)

Visits the children of the BinaryExpression.

VisitBlock(BlockExpression)

Visits the children of the BlockExpression.

VisitCatchBlock(CatchBlock)

Visits the children of the CatchBlock.

VisitConditional(ConditionalExpression)

Visits the children of the ConditionalExpression.

VisitConstant(ConstantExpression)

Visits the ConstantExpression.

VisitDebugInfo(DebugInfoExpression)

Visits the DebugInfoExpression.

VisitDefault(DefaultExpression)

Visits the DefaultExpression.

VisitDynamic(DynamicExpression)

Visits the children of the DynamicExpression.

VisitElementInit(ElementInit)

Visits the children of the ElementInit.

VisitExtension(Expression)

Visits the children of the extension expression.

VisitGoto(GotoExpression)

Visits the children of the GotoExpression.

VisitIndex(IndexExpression)

Visits the children of the IndexExpression.

VisitInvocation(InvocationExpression)

Visits the children of the InvocationExpression.

VisitLabel(LabelExpression)

Visits the children of the LabelExpression.

VisitLabelTarget(LabelTarget)

Visits the LabelTarget.

VisitLambda<T>(Expression<T>)

Visits the children of the Expression<TDelegate>.

VisitListInit(ListInitExpression)

Visits the children of the ListInitExpression.

VisitLoop(LoopExpression)

Visits the children of the LoopExpression.

VisitMember(MemberExpression)

Visits the children of the MemberExpression.

VisitMemberAssignment(MemberAssignment)

Visits the children of the MemberAssignment.

VisitMemberBinding(MemberBinding)

Visits the children of the MemberBinding.

VisitMemberInit(MemberInitExpression)

Visits the children of the MemberInitExpression.

VisitMemberListBinding(MemberListBinding)

Visits the children of the MemberListBinding.

VisitMemberMemberBinding(MemberMemberBinding)

Visits the children of the MemberMemberBinding.

VisitMethodCall(MethodCallExpression)

Visits the children of the MethodCallExpression.

VisitNew(NewExpression)

Visits the children of the NewExpression.

VisitNewArray(NewArrayExpression)

Visits the children of the NewArrayExpression.

VisitParameter(ParameterExpression)

Visits the ParameterExpression.

VisitRuntimeVariables(RuntimeVariablesExpression)

Visits the children of the RuntimeVariablesExpression.

VisitSwitch(SwitchExpression)

Visits the children of the SwitchExpression.

VisitSwitchCase(SwitchCase)

Visits the children of the SwitchCase.

VisitTry(TryExpression)

Visits the children of the TryExpression.

VisitTypeBinary(TypeBinaryExpression)

Visits the children of the TypeBinaryExpression.

VisitUnary(UnaryExpression)

Visits the children of the UnaryExpression.

Applies to