System.Xml.Xsl.IlGen.XmlILOptimizerVisitor.NodeCounter.Count C# (CSharp) Method

Count() public method

Returns number of occurrences of "target" node within the subtree of "expr".
public Count ( QilNode expr, QilNode target ) : int
expr QilNode
target QilNode
return int
            public int Count(QilNode expr, QilNode target) {
                this.cnt = 0;
                this.target = target;
                Visit(expr);
                return this.cnt;
            }
XmlILOptimizerVisitor.NodeCounter