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