Fork me on GitHubEpicdominant domains
APIEpic.Specifications.VisitorsVariantVisitorBase<(Of <(<'TResult, TCandidate>)>)>VisitUpcastingVariant<(Of <<'(FromCandidate, ToCandidate>)>>)(Variant<(Of <<'(FromCandidate, ToCandidate>)>>), IVisitContext)

VisitUpcastingVariant<(Of <(<'FromCandidate, ToCandidate>)>)> Method (target, context)

Assembly: Epic.Prelude

Declaration Syntax
C#
protected abstract TResult VisitUpcastingVariant<FromCandidate, ToCandidate>(
	Variant<FromCandidate, ToCandidate> target,
	IVisitContext context
)
where FromCandidate : class, TCandidate, ToCandidate
where ToCandidate : class, TCandidate
Generic Template Parameters
FromCandidate
The stricter type, that specializes ToCandidate. It corresponds to the type of objects that satisfies the InnerSpecification.
ToCandidate
The wider (more abstract) type.
Parameters
target (Variant<(Of <(<'FromCandidate, ToCandidate>)>)>)
Target to visit. The caller grants that this argument will never be nullNothingnullptr.
context (IVisitContext)
Context. The caller grants that this argument will never be nullNothingnullptr.
Return Value
The result of the visit.
blog comments powered by Disqus