Beispiel #1
0
        public virtual TResult Visit(GreenNode node)
        {
            if (node == null)
            {
                return(default(TResult));
            }

            return(node.Accept(this));
        }
Beispiel #2
0
        public virtual GreenNode Visit(GreenNode node)
        {
            if (node != null)
            {
                return(node.Accept(this));
            }

            return(null);
        }