示例#1
0
        /// <summary>
        /// If "seq" is non-null, then clear it and reuse it.  Otherwise, create a new XmlQueryItemSequence.
        /// Add "item" to the sequence.
        /// </summary>
        public static XmlQueryItemSequence CreateOrReuse(XmlQueryItemSequence seq, XPathItem item)
        {
            if (seq != null)
            {
                seq.Clear();
                seq.Add(item);
                return(seq);
            }

            return(new XmlQueryItemSequence(item));
        }
示例#2
0
 public override void EndTree()
 {
     // Add newly constructed document to sequence
     _writer.Close();
     _seqTyped.Add(_doc.CreateNavigator());
 }