Utility method. You can implement Accept simply with "return AcceptMe(this, visitor, context);".
Assembly: Epic.Prelude
Declaration Syntax
C# |
protected TResult AcceptMe<TResult, TVisitable>( TVisitable visitable, IVisitor<TResult> visitor, IVisitContext context ) where TVisitable : class, IVisitable
Generic Template Parameters
- TResult
- Type of the result.
- TVisitable
- Type of the visitable (must be a leaf in the hierarchy tree).
Parameters
- visitable (TVisitable)
- The current instance
- visitor (IVisitor<(Of <(<'TResult>)>)>)
- Visitor.
- context (IVisitContext)
- Context of the visit.
Return Value
The result of the visit.
Return Value
Result of the visit.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Is thrown when either visitor or context are nullNothingnullptr. |
ArgumentOutOfRangeException | Is thrown when visitable is not the current instance. |
InvalidOperationException |
Is thrown when called from a non leaf in the hierachy tree.
|