Esempio n. 1
0
        CountNodes()
        {
            CountingNodeVisitor cnv = new CountingNodeVisitor();

            NodeVisitor.VisitNodes(_topLevelNodes, cnv);
            return(cnv.Count);
        }
Esempio n. 2
0
 CountNodes()
 {
     CountingNodeVisitor cnv = new CountingNodeVisitor();
     NodeVisitor.VisitNodes(_topLevelNodes, cnv);
     return cnv.Count;
 }