Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ExpressionVisitor Class

Represents a visitor or rewriter for expression trees.

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

public ref class ExpressionVisitor abstract

The ExpressionVisitor type exposes the following members.

  NameDescription
Protected methodSupported by Portable Class LibraryExpressionVisitorInitializes a new instance of ExpressionVisitor.
Top

  NameDescription
Public methodSupported by Portable Class LibraryEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodSupported by Portable Class LibraryFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by Portable Class LibraryGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodSupported by Portable Class LibraryGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by Portable Class LibraryMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by Portable Class LibraryToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodSupported by Portable Class LibraryVisit(Expression)Dispatches the expression to one of the more specialized visit methods in this class.
Public methodSupported by Portable Class LibraryVisit(ReadOnlyCollection<Expression>)Dispatches the list of expressions to one of the more specialized visit methods in this class.
Public methodStatic memberSupported by Portable Class LibraryVisit<T>(ReadOnlyCollection<T>, Func<T, T>)Visits all nodes in the collection using a specified element visitor.
Public methodSupported by Portable Class LibraryVisitAndConvert<T>(T, String)Visits an expression, casting the result back to the original expression type.
Public methodSupported by Portable Class LibraryVisitAndConvert<T>(ReadOnlyCollection<T>, String)Visits an expression, casting the result back to the original expression type.
Protected methodSupported by Portable Class LibraryVisitBinaryVisits the children of the BinaryExpression.
Protected methodSupported by Portable Class LibraryVisitBlockVisits the children of the BlockExpression.
Protected methodSupported by Portable Class LibraryVisitCatchBlockVisits the children of the CatchBlock.
Protected methodSupported by Portable Class LibraryVisitConditionalVisits the children of the ConditionalExpression.
Protected methodSupported by Portable Class LibraryVisitConstantVisits the ConstantExpression.
Protected methodSupported by Portable Class LibraryVisitDebugInfoVisits the DebugInfoExpression.
Protected methodSupported by Portable Class LibraryVisitDefaultVisits the DefaultExpression.
Protected methodSupported by Portable Class LibraryVisitDynamicVisits the children of the DynamicExpression.
Protected methodSupported by Portable Class LibraryVisitElementInitVisits the children of the ElementInit.
Protected methodSupported by Portable Class LibraryVisitExtensionVisits the children of the extension expression.
Protected methodSupported by Portable Class LibraryVisitGotoVisits the children of the GotoExpression.
Protected methodSupported by Portable Class LibraryVisitIndexVisits the children of the IndexExpression.
Protected methodSupported by Portable Class LibraryVisitInvocationVisits the children of the InvocationExpression.
Protected methodSupported by Portable Class LibraryVisitLabelVisits the children of the LabelExpression.
Protected methodSupported by Portable Class LibraryVisitLabelTargetVisits the LabelTarget.
Protected methodSupported by Portable Class LibraryVisitLambda<T>Visits the children of the Expression<TDelegate>.
Protected methodSupported by Portable Class LibraryVisitListInitVisits the children of the ListInitExpression.
Protected methodSupported by Portable Class LibraryVisitLoopVisits the children of the LoopExpression.
Protected methodSupported by Portable Class LibraryVisitMemberVisits the children of the MemberExpression.
Protected methodSupported by Portable Class LibraryVisitMemberAssignmentVisits the children of the MemberAssignment.
Protected methodSupported by Portable Class LibraryVisitMemberBindingVisits the children of the MemberBinding.
Protected methodSupported by Portable Class LibraryVisitMemberInitVisits the children of the MemberInitExpression.
Protected methodSupported by Portable Class LibraryVisitMemberListBindingVisits the children of the MemberListBinding.
Protected methodSupported by Portable Class LibraryVisitMemberMemberBindingVisits the children of the MemberMemberBinding.
Protected methodSupported by Portable Class LibraryVisitMethodCallVisits the children of the MethodCallExpression.
Protected methodSupported by Portable Class LibraryVisitNewVisits the children of the NewExpression.
Protected methodSupported by Portable Class LibraryVisitNewArrayVisits the children of the NewArrayExpression.
Protected methodSupported by Portable Class LibraryVisitParameterVisits the ParameterExpression.
Protected methodSupported by Portable Class LibraryVisitRuntimeVariablesVisits the children of the RuntimeVariablesExpression.
Protected methodSupported by Portable Class LibraryVisitSwitchVisits the children of the SwitchExpression.
Protected methodSupported by Portable Class LibraryVisitSwitchCaseVisits the children of the SwitchCase.
Protected methodSupported by Portable Class LibraryVisitTryVisits the children of the TryExpression.
Protected methodSupported by Portable Class LibraryVisitTypeBinaryVisits the children of the TypeBinaryExpression.
Protected methodSupported by Portable Class LibraryVisitUnaryVisits the children of the UnaryExpression.
Top

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

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Portable Class Library

Supported in: Portable Class Library

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.
Show:
© 2015 Microsoft