Updates referencesource to .NET 4.7
[mono-project.git] / mcs / class / referencesource / System.Xml / System / Xml / XPath / Internal / GroupQuery.cs
blob087d3bafa45dc1b09d399ccb3f2e6944c69be7c4
1 //------------------------------------------------------------------------------
2 // <copyright file="GroupQuery.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
4 // </copyright>
5 // <owner current="true" primary="true">Microsoft</owner>
6 //------------------------------------------------------------------------------
8 namespace MS.Internal.Xml.XPath {
9 using System;
10 using System.Xml;
11 using System.Xml.XPath;
12 using System.Diagnostics;
13 using System.Globalization;
15 internal sealed class GroupQuery : BaseAxisQuery {
17 public GroupQuery(Query qy): base(qy) {}
18 private GroupQuery(GroupQuery other) : base(other) { }
20 public override XPathNavigator Advance() {
21 currentNode = qyInput.Advance();
22 if (currentNode != null) {
23 position++;
25 return currentNode;
28 public override object Evaluate(XPathNodeIterator nodeIterator) {
29 return qyInput.Evaluate(nodeIterator);
32 public override XPathNodeIterator Clone() { return new GroupQuery(this); }
33 public override XPathResultType StaticType { get { return qyInput.StaticType; } }
34 public override QueryProps Properties { get { return QueryProps.Position; } } // Doesn't have QueryProps.Merge