Fork me on GitHubEpicdominant domains
APIEpicVisitableBaseAcceptMe<(Of <<'(TResult, TVisitable>)>>)(TVisitable, IVisitor<(Of <<'(TResult>)>>), IVisitContext)

AcceptMe<(Of <(<'TResult, TVisitable>)>)> Method (visitable, visitor, context)
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
ExceptionCondition
ArgumentNullExceptionIs thrown when either visitor or context are nullNothingnullptr.
ArgumentOutOfRangeExceptionIs thrown when visitable is not the current instance.
InvalidOperationException Is thrown when called from a non leaf in the hierachy tree.
blog comments powered by Disqus