Example #1
0
        public override TResult Accept <TResult>(IParseTreeVisitor <TResult> visitor)
        {
            IJsonVisitor <TResult> typedVisitor = visitor as IJsonVisitor <TResult>;

            if (typedVisitor != null)
            {
                return(typedVisitor.VisitKeyValuePair(this));
            }
            else
            {
                return(visitor.VisitChildren(this));
            }
        }