Accept the specified visitor (double dispatch) and returns
the TResult that the visit produce.
Assembly: Epic.Prelude
Declaration Syntax
C# |
TResult Accept<TResult>( IVisitor<TResult> visitor, IVisitContext context )
Generic Template Parameters
- TResult
- Type of the result of the visit.
Parameters
- visitor (IVisitor<(Of <(<'TResult>)>)>)
- Visitor.
- context (IVisitContext)
- Context of the visit.
Return Value
Result of the visit.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | visitor or context is nullNothingnullptr |
InvalidOperationException |
The visitor can not be used to visit the current instance.
|