Enables the visit of target returning the visitor
under an interface ready for the operation.
Assembly: Epic.Prelude
Declaration Syntax
C# |
IVisitor<TResult, TExpression> AsVisitor<TExpression>( TExpression target ) where TExpression : class
Generic Template Parameters
- TExpression
- Type of the expression that will be visited from the returned visitor.
Parameters
- target (TExpression)
- Expression to be visited.
Return Value
The visitor that can visit target.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException |
The current visitor can not be used to visit target.
|