Accept the specified visitor (double dispatch).
Assembly: Epic.Prelude
Declaration Syntax
C# |
public abstract 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.
|