Visits an upcasting Variant<(Of <(<'FromCandidate, ToCandidate>)>)>.
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.