System.Xml.XmlElementList.GetNthMatchingNode C# (CSharp) Méthode

GetNthMatchingNode() private méthode

private GetNthMatchingNode ( XmlNode n, bool bNext, int nCount ) : XmlNode
n XmlNode
bNext bool
nCount int
Résultat XmlNode
        private XmlNode GetNthMatchingNode( XmlNode n, bool bNext, int nCount ) {
            Debug.Assert( n!= null );
            XmlNode node = n;
            for ( int ind = 0 ; ind < nCount; ind++ ) {
                node = GetMatchingNode( node, bNext );
                if ( node == null )
                    return null;
            } 
            return node;
        }