1 //------------------------------------------------------------------------------
2 // <copyright file="DocumentOrderQuery.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
5 // <owner current="true" primary="true">Microsoft</owner>
6 //------------------------------------------------------------------------------
8 namespace MS.Internal.Xml.XPath {
11 using System.Xml.XPath;
12 using System.Diagnostics;
14 internal sealed class DocumentOrderQuery : CacheOutputQuery {
16 public DocumentOrderQuery(Query qyParent) : base(qyParent) {}
17 private DocumentOrderQuery(DocumentOrderQuery other) : base(other) { }
19 public override object Evaluate(XPathNodeIterator context) {
20 base.Evaluate(context);
23 while ((node = base.input.Advance()) != null) {
24 Insert(outputBuffer, node);
30 public override XPathNavigator MatchNode(XPathNavigator context) {
31 return input.MatchNode(context);
34 public override XPathNodeIterator Clone() { return new DocumentOrderQuery(this); }