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

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

Assembly: Epic.Prelude

Declaration Syntax
C#
protected abstract TResult VisitDowncastingVariant<FromCandidate, ToCandidate>(
	Variant<FromCandidate, ToCandidate> target,
	IVisitContext context
)
where FromCandidate : class, TCandidate
where ToCandidate : class, TCandidate, FromCandidate
Generic Template Parameters
FromCandidate
The wider (more abstract) type. It corresponds to the type of objects that satisfies the InnerSpecification.
ToCandidate
The stricter type, that specializes FromCandidate.
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