ExpressionVisitor Class

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Represents a visitor or rewriter for expression trees.

Inheritance Hierarchy

System.Object
  System.Linq.Expressions.ExpressionVisitor

Namespace:  System.Linq.Expressions
Assembly:  System.Core (in System.Core.dll)

Syntax

'Declaration
Public MustInherit Class ExpressionVisitor
public abstract class ExpressionVisitor

The ExpressionVisitor type exposes the following members.

Constructors

  Name Description
Protected method ExpressionVisitor Initializes a new instance of ExpressionVisitor.

Top

Methods

  Name Description
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Visit(Expression) Dispatches the expression to one of the more specialized visit methods in this class.
Public method Visit(ReadOnlyCollection<Expression>) Dispatches the list of expressions to one of the more specialized visit methods in this class.
Public methodStatic member Visit<T>(ReadOnlyCollection<T>, Func<T, T>) Visits all nodes in the collection using a specified element visitor.
Public method VisitAndConvert<T>(T, String) Visits an expression, casting the result back to the original expression type.
Public method VisitAndConvert<T>(ReadOnlyCollection<T>, String) Visits an expression, casting the result back to the original expression type.
Protected method VisitBinary Visits the children of the BinaryExpression.
Protected method VisitBlock Visits the children of the BlockExpression.
Protected method VisitCatchBlock Visits the children of the CatchBlock.
Protected method VisitConditional Visits the children of the ConditionalExpression.
Protected method VisitConstant Visits the ConstantExpression.
Protected method VisitDebugInfo Visits the DebugInfoExpression.
Protected method VisitDefault Visits the DefaultExpression.
Protected method VisitDynamic Visits the children of the DynamicExpression.
Protected method VisitElementInit Visits the children of the ElementInit.
Protected method VisitExtension Visits the children of the extension expression.
Protected method VisitGoto Visits the children of the GotoExpression.
Protected method VisitIndex Visits the children of the IndexExpression.
Protected method VisitInvocation Visits the children of the InvocationExpression.
Protected method VisitLabel Visits the children of the LabelExpression.
Protected method VisitLabelTarget Visits the LabelTarget.
Protected method VisitLambda<T> Visits the children of the Expression<TDelegate>.
Protected method VisitListInit Visits the children of the ListInitExpression.
Protected method VisitLoop Visits the children of the LoopExpression.
Protected method VisitMember Visits the children of the MemberExpression.
Protected method VisitMemberAssignment Visits the children of the MemberAssignment.
Protected method VisitMemberBinding Visits the children of the MemberBinding.
Protected method VisitMemberInit Visits the children of the MemberInitExpression.
Protected method VisitMemberListBinding Visits the children of the MemberListBinding.
Protected method VisitMemberMemberBinding Visits the children of the MemberMemberBinding.
Protected method VisitMethodCall Visits the children of the MethodCallExpression.
Protected method VisitNew Visits the children of the NewExpression.
Protected method VisitNewArray Visits the children of the NewArrayExpression.
Protected method VisitParameter Visits the ParameterExpression.
Protected method VisitRuntimeVariables Visits the children of the RuntimeVariablesExpression.
Protected method VisitSwitch Visits the children of the SwitchExpression.
Protected method VisitSwitchCase Visits the children of the SwitchCase.
Protected method VisitTry Visits the children of the TryExpression.
Protected method VisitTypeBinary Visits the children of the TypeBinaryExpression.
Protected method VisitUnary Visits the children of the UnaryExpression.

Top

Remarks

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

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.