Beispiel #1
0
        public int Add(string xpath)
        {
            XPathQuery xpathexpr;

            if (reader != null)
            {
                xpathexpr = new XPathQuery(xpath, reader.Depth);
                if (reader.ReadState == ReadState.Interactive)
                {
                    xpathexpr.Advance(this.reader);
                }
            }
            else
            {
                xpathexpr = new XPathQuery(xpath);
            }

            xpathexpr.Key = key;

            xpathes.Add(key++, xpathexpr);

            return(key - 1);
        }
        public int Add(string xpath) {
            XPathQuery xpathexpr;

            if (reader != null) {
                xpathexpr = new XPathQuery(xpath, reader.Depth);
                if (reader.ReadState == ReadState.Interactive) {
                    xpathexpr.Advance(this.reader);
                }
            }
            else {
                xpathexpr = new XPathQuery(xpath);
            }

            xpathexpr.Key = key;

            xpathes.Add(key++, xpathexpr);

            return (key - 1);
        }