ExpressionReplacerHandleExpression Method |
Handles the expression.
Namespace:
SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlers
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.4.0.0 (5.4.0)
Syntax public override Expression HandleExpression(
Expression expressionToHandle
)
Public Overrides Function HandleExpression (
expressionToHandle As Expression
) As Expression
Parameters
- expressionToHandle
- Type: System.Linq.ExpressionsExpression
The expression to handle.
Return Value
Type:
Expression
the result expression after the expression has been handled.
Remarks Handling an expression is like Visiting a node in a graph using the visitor pattern. However, as the code
in Linq's Expression trees isn't really capable of to be used with visitors (as the expression objects can't call a passed in visitor, as there's
no mechanism to do so), the handler is placed outside the expression tree and not really in a visitor pattern way.
This routine is the central dispatcher for the expression nodes found in the expression tree.
See Also