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

Accept<(Of <(<'TResult>)>)> Method (exception, visitor, context)
Force exception to accept the specified visitor and context.

Assembly: Epic.Prelude

Declaration Syntax
C#
public static TResult Accept<TResult>(
	this Exception exception,
	IVisitor<TResult> visitor,
	IVisitContext context
)
Generic Template Parameters
TResult
The type of the result of the visit.
Parameters
exception (Exception)
Exception that will be routed to visitor with its actual type.
visitor (IVisitor<(Of <(<'TResult>)>)>)
Visitor.
context (IVisitContext)
Context of the visit.
Return Value

[Missing <returns> documentation for "M:Epic.UnvisitableExtensions.Accept``1(System.Exception,Epic.IVisitor{``0},Epic.IVisitContext)"]

Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Exception. When you use instance method syntax to call this method, omit the first parameter.
Exceptions
ExceptionCondition
ArgumentNullExceptionexception, visitor or context is nullNothingnullptr.
blog comments powered by Disqus