1 //------------------------------------------------------------------------------
2 // <copyright file="EmptyQuery.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
5 // <owner current="true" primary="true">[....]</owner>
6 //------------------------------------------------------------------------------
8 namespace MS.Internal.Xml.XPath {
11 using System.Xml.XPath;
12 using System.Diagnostics;
13 using System.Globalization;
15 using System.Collections;
17 internal sealed class EmptyQuery : Query {
18 public override XPathNavigator Advance() { return null; }
19 public override XPathNodeIterator Clone() { return this; }
20 public override object Evaluate(XPathNodeIterator context) { return this; }
21 public override int CurrentPosition { get { return 0; } }
22 public override int Count { get { return 0; } }
23 public override QueryProps Properties { get { return QueryProps.Merge | QueryProps.Cached | QueryProps.Position | QueryProps.Count; } }
24 public override XPathResultType StaticType { get { return XPathResultType.NodeSet; } }
25 public override void Reset() { }
26 public override XPathNavigator Current { get { return null; } }