System.ConfigTreeParser.EndChildren C# (CSharp) Method

EndChildren() public method

public EndChildren ( int fEmpty, int size, ConfigNodeSubType subType, ConfigNodeType nType, int terminal, [ text, int textLength, int prefixLength ) : void
fEmpty int
size int
subType ConfigNodeSubType
nType ConfigNodeType
terminal int
text [
textLength int
prefixLength int
return void
        public void EndChildren(int fEmpty, 
                                int size,
                                ConfigNodeSubType subType, 
                                ConfigNodeType nType,                               
                                int terminal, 
                                [MarshalAs(UnmanagedType.LPWStr)] String text, 
                                int textLength, 
                                int prefixLength)
        {
            lastProcessed = "</"+text+">";          
            if (parsing)
            {
                //Trace("EndChildren",size,subType,nType,terminal,text,textLength,prefixLength,fEmpty);

                if (currentNode == rootNode)
                {
                    // End of section of tree which is parsed
                    parsing = false;
                }

                currentNode = currentNode.Parent;
            }
            else if (nType == ConfigNodeType.Element){
                if(depth == searchDepth && String.Compare(text, treeRootPath[searchDepth - 1], StringComparison.Ordinal) == 0)
                {
                    searchDepth--;
                    depth--;
                }
                else 
                    depth--;
            }
            
        }