Base class for visitors of Variant<(Of <(<'FromCandidate, ToCandidate>)>)>.
Inheritance Hierarchy
Object | ||
CompositeVisitor<(Of <(<'TResult>)>)>..::..VisitorBase | ||
VariantVisitorBase<(Of <(<'TResult, TCandidate>)>)> |
Assembly: Epic.Prelude
Declaration Syntax
C# |
public abstract class VariantVisitorBase<TResult, TCandidate> : CompositeVisitor<(Of <(<'TResult>)>)>..::..VisitorBase where TCandidate : class
Generic Template Parameters
- TResult
- Type of the result produced from the visits.
- TCandidate
- Common ancestor of the candidate types handled by the Variant<(Of <(<'FromCandidate, ToCandidate>)>)>.
Members
All Members | Constructors | Methods | |||
Member | Description | |
---|---|---|
VariantVisitorBase<(Of <(<'TResult, TCandidate>)>)>(CompositeVisitor<(Of <<'(TResult>)>>)) |
Initializes a new instance of the VariantVisitorBase<(Of <(<'TResult, TCandidate>)>)> class.
| |
AsVisitor<(Of <<'(TExpression>)>>)(TExpression) |
Returns the current instance if and only if it's able to visit target,
nullNothingnullptr otherwise.
It should be overridden whenever the type of target is not enough
to choose whether the current instance can visit it or not.
(Overrides CompositeVisitor<(Of <(<'TResult>)>)>..::..VisitorBase.AsVisitor<(Of <<'(TExpression>)>>)(TExpression).) | |
VisitDowncastingVariant<(Of <<'(FromCandidate, ToCandidate>)>>)(Variant<(Of <<'(FromCandidate, ToCandidate>)>>), IVisitContext) |
Visits a downcasting Variant<(Of <(<'FromCandidate, ToCandidate>)>)>.
| |
VisitUpcastingVariant<(Of <<'(FromCandidate, ToCandidate>)>>)(Variant<(Of <<'(FromCandidate, ToCandidate>)>>), IVisitContext) |
Visits an upcasting Variant<(Of <(<'FromCandidate, ToCandidate>)>)>.
|