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 | |
---|---|---|
ExpressionVisitor | Initializes a new instance of ExpressionVisitor. |
Top
Methods
Name | Description | |
---|---|---|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
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.) | |
GetHashCode | Serves as a hash function for a particular type. (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>(T, String) | Visits an expression, casting the result back to the original expression type. | |
VisitAndConvert<T>(ReadOnlyCollection<T>, String) | Visits an expression, casting the result back to the original expression type. | |
VisitBinary | Visits the children of the BinaryExpression. | |
VisitBlock | Visits the children of the BlockExpression. | |
VisitCatchBlock | Visits the children of the CatchBlock. | |
VisitConditional | Visits the children of the ConditionalExpression. | |
VisitConstant | Visits the ConstantExpression. | |
VisitDebugInfo | Visits the DebugInfoExpression. | |
VisitDefault | Visits the DefaultExpression. | |
VisitDynamic | Visits the children of the DynamicExpression. | |
VisitElementInit | Visits the children of the ElementInit. | |
VisitExtension | Visits the children of the extension expression. | |
VisitGoto | Visits the children of the GotoExpression. | |
VisitIndex | Visits the children of the IndexExpression. | |
VisitInvocation | Visits the children of the InvocationExpression. | |
VisitLabel | Visits the children of the LabelExpression. | |
VisitLabelTarget | Visits the LabelTarget. | |
VisitLambda<T> | Visits the children of the Expression<TDelegate>. | |
VisitListInit | Visits the children of the ListInitExpression. | |
VisitLoop | Visits the children of the LoopExpression. | |
VisitMember | Visits the children of the MemberExpression. | |
VisitMemberAssignment | Visits the children of the MemberAssignment. | |
VisitMemberBinding | Visits the children of the MemberBinding. | |
VisitMemberInit | Visits the children of the MemberInitExpression. | |
VisitMemberListBinding | Visits the children of the MemberListBinding. | |
VisitMemberMemberBinding | Visits the children of the MemberMemberBinding. | |
VisitMethodCall | Visits the children of the MethodCallExpression. | |
VisitNew | Visits the children of the NewExpression. | |
VisitNewArray | Visits the children of the NewArrayExpression. | |
VisitParameter | Visits the ParameterExpression. | |
VisitRuntimeVariables | Visits the children of the RuntimeVariablesExpression. | |
VisitSwitch | Visits the children of the SwitchExpression. | |
VisitSwitchCase | Visits the children of the SwitchCase. | |
VisitTry | Visits the children of the TryExpression. | |
VisitTypeBinary | Visits the children of the TypeBinaryExpression. | |
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.