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

Accept<(Of <(<'TResult>)>)> Method (visitor, context)
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
ExceptionCondition
ArgumentNullExceptionvisitor or context is nullNothingnullptr
InvalidOperationException The visitor can not be used to visit the current instance.
blog comments powered by Disqus