Class TypeExpressionVisitor<T>
Expression visitor that operates on a single entity type.
public class TypeExpressionVisitor<T> : ExpressionVisitor where T : Expression
Type Parameters
TThe entity type the visitor expects at the leaves.
- Inheritance
-
TypeExpressionVisitor<T>
- Inherited Members
- Extension Methods
Properties
Has
Whether a node of type T was found during the visit.
public bool Has { get; }
Property Value
Target
The first node of type T found during the visit, or null.
public T? Target { get; }
Property Value
- T
Methods
Visit(Expression?)
Records the first node assignable to T and stops there; otherwise
continues the base traversal.
public override Expression? Visit(Expression? node)
Parameters
nodeExpressionThe current node.
Returns
- Expression
The node, or the result of the base visit.