Fork me on GitHubEpicdominant domains
APIEpic.Specifications.VisitorsVariantVisitorBase<(Of <(<'TResult, TCandidate>)>)>

VariantVisitorBase<(Of <(<'TResult, TCandidate>)>)>
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 MembersConstructorsMethods   



MemberDescription
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)
VisitUpcastingVariant<(Of <<'(FromCandidate, ToCandidate>)>>)(Variant<(Of <<'(FromCandidate, ToCandidate>)>>), IVisitContext)
blog comments powered by Disqus