Class ExpressionVisitor
Summary description for ExpressionVisitor.
Inheritance
System.Object
ExpressionVisitor
Assembly: ImageVault.Client.dll
Syntax
public abstract class ExpressionVisitor : Object
Constructors
ExpressionVisitor()
Declaration
protected ExpressionVisitor()
Properties
Path
Gets the Path of the ExpressionVisitor
Declaration
protected Stack<ExpressionType> Path { get; }
Property Value
Type |
Description |
System.Collections.Generic.Stack<System.Linq.Expressions.ExpressionType> |
Used to keep track of the current path of the tree
|
Methods
Visit(Expression)
Declaration
public virtual Expression Visit(Expression exp)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression |
exp |
|
Returns
Type |
Description |
System.Linq.Expressions.Expression |
|
Exceptions
Type |
Condition |
System.ArgumentException |
If unhandled expression type .
|
VisitBinary(BinaryExpression)
Declaration
protected virtual Expression VisitBinary(BinaryExpression b)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.BinaryExpression |
b |
|
Returns
Type |
Description |
System.Linq.Expressions.Expression |
|
VisitBinding(MemberBinding)
Declaration
protected virtual MemberBinding VisitBinding(MemberBinding binding)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.MemberBinding |
binding |
|
Returns
Type |
Description |
System.Linq.Expressions.MemberBinding |
|
Exceptions
Type |
Condition |
System.ArgumentException |
If unhandled binding type .
|
VisitBindingList(ReadOnlyCollection<MemberBinding>)
Declaration
protected virtual IEnumerable<MemberBinding> VisitBindingList(ReadOnlyCollection<MemberBinding> original)
Parameters
Type |
Name |
Description |
System.Collections.ObjectModel.ReadOnlyCollection<System.Linq.Expressions.MemberBinding> |
original |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.Linq.Expressions.MemberBinding> |
|
VisitConditional(ConditionalExpression)
Declaration
protected virtual Expression VisitConditional(ConditionalExpression c)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.ConditionalExpression |
c |
|
Returns
Type |
Description |
System.Linq.Expressions.Expression |
|
VisitConstant(ConstantExpression)
Declaration
protected virtual Expression VisitConstant(ConstantExpression c)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.ConstantExpression |
c |
|
Returns
Type |
Description |
System.Linq.Expressions.Expression |
|
VisitElementInitializer(ElementInit)
Declaration
protected virtual ElementInit VisitElementInitializer(ElementInit initializer)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.ElementInit |
initializer |
|
Returns
Type |
Description |
System.Linq.Expressions.ElementInit |
|
VisitElementInitializerList(ReadOnlyCollection<ElementInit>)
Declaration
protected virtual IEnumerable<ElementInit> VisitElementInitializerList(ReadOnlyCollection<ElementInit> original)
Parameters
Type |
Name |
Description |
System.Collections.ObjectModel.ReadOnlyCollection<System.Linq.Expressions.ElementInit> |
original |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.Linq.Expressions.ElementInit> |
|
VisitExpressionList(ReadOnlyCollection<Expression>)
Declaration
protected virtual ReadOnlyCollection<Expression> VisitExpressionList(ReadOnlyCollection<Expression> original)
Parameters
Type |
Name |
Description |
System.Collections.ObjectModel.ReadOnlyCollection<System.Linq.Expressions.Expression> |
original |
|
Returns
Type |
Description |
System.Collections.ObjectModel.ReadOnlyCollection<System.Linq.Expressions.Expression> |
|
VisitExpressionListWithCallback(ReadOnlyCollection<Expression>, Action<Int32, Int32>, Func<Int32, Int32, Boolean>)
Visits the supplied expressionlist
Declaration
protected virtual ReadOnlyCollection<Expression> VisitExpressionListWithCallback(ReadOnlyCollection<Expression> original, Action<int, int> callback, Func<int, int, bool> visitArgumentCheck)
Parameters
Type |
Name |
Description |
System.Collections.ObjectModel.ReadOnlyCollection<System.Linq.Expressions.Expression> |
original |
The original System.Collections.ObjectModel.ReadOnlyCollection<> to visit
|
System.Action<System.Int32, System.Int32> |
callback |
The callback to use when each item has been visited
|
System.Func<System.Int32, System.Int32, System.Boolean> |
visitArgumentCheck |
A callback to use if we would like to determine if the item should be visited or not
|
Returns
Type |
Description |
System.Collections.ObjectModel.ReadOnlyCollection<System.Linq.Expressions.Expression> |
|
VisitInvocation(InvocationExpression)
Declaration
protected virtual Expression VisitInvocation(InvocationExpression iv)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.InvocationExpression |
iv |
|
Returns
Type |
Description |
System.Linq.Expressions.Expression |
|
VisitLambda(LambdaExpression)
Declaration
protected virtual Expression VisitLambda(LambdaExpression lambda)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.LambdaExpression |
lambda |
|
Returns
Type |
Description |
System.Linq.Expressions.Expression |
|
VisitListInit(ListInitExpression)
Declaration
protected virtual Expression VisitListInit(ListInitExpression init)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.ListInitExpression |
init |
|
Returns
Type |
Description |
System.Linq.Expressions.Expression |
|
VisitMemberAccess(MemberExpression)
Declaration
protected virtual Expression VisitMemberAccess(MemberExpression m)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.MemberExpression |
m |
|
Returns
Type |
Description |
System.Linq.Expressions.Expression |
|
VisitMemberAssignment(MemberAssignment)
Declaration
protected virtual MemberAssignment VisitMemberAssignment(MemberAssignment assignment)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.MemberAssignment |
assignment |
|
Returns
Type |
Description |
System.Linq.Expressions.MemberAssignment |
|
VisitMemberInit(MemberInitExpression)
Declaration
protected virtual Expression VisitMemberInit(MemberInitExpression init)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.MemberInitExpression |
init |
|
Returns
Type |
Description |
System.Linq.Expressions.Expression |
|
VisitMemberListBinding(MemberListBinding)
Declaration
protected virtual MemberListBinding VisitMemberListBinding(MemberListBinding binding)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.MemberListBinding |
binding |
|
Returns
Type |
Description |
System.Linq.Expressions.MemberListBinding |
|
VisitMemberMemberBinding(MemberMemberBinding)
Declaration
protected virtual MemberMemberBinding VisitMemberMemberBinding(MemberMemberBinding binding)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.MemberMemberBinding |
binding |
|
Returns
Type |
Description |
System.Linq.Expressions.MemberMemberBinding |
|
VisitMethodCall(MethodCallExpression)
Declaration
protected virtual Expression VisitMethodCall(MethodCallExpression m)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.MethodCallExpression |
m |
|
Returns
Type |
Description |
System.Linq.Expressions.Expression |
|
VisitNew(NewExpression)
Declaration
protected virtual NewExpression VisitNew(NewExpression nex)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.NewExpression |
nex |
|
Returns
Type |
Description |
System.Linq.Expressions.NewExpression |
|
VisitNewArray(NewArrayExpression)
Declaration
protected virtual Expression VisitNewArray(NewArrayExpression na)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.NewArrayExpression |
na |
|
Returns
Type |
Description |
System.Linq.Expressions.Expression |
|
VisitParameter(ParameterExpression)
Declaration
protected virtual Expression VisitParameter(ParameterExpression p)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.ParameterExpression |
p |
|
Returns
Type |
Description |
System.Linq.Expressions.Expression |
|
VisitTypeIs(TypeBinaryExpression)
Declaration
protected virtual Expression VisitTypeIs(TypeBinaryExpression b)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.TypeBinaryExpression |
b |
|
Returns
Type |
Description |
System.Linq.Expressions.Expression |
|
VisitUnary(UnaryExpression)
Declaration
protected virtual Expression VisitUnary(UnaryExpression u)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.UnaryExpression |
u |
|
Returns
Type |
Description |
System.Linq.Expressions.Expression |
|
Extension Methods