Update Reference Sources to .NET Framework 4.6.1
[mono.git] / mcs / class / referencesource / System.Xml / System / Xml / XPath / Internal / EmptyQuery.cs
1 //------------------------------------------------------------------------------
2 // <copyright file="EmptyQuery.cs" company="Microsoft">
3 //     Copyright (c) Microsoft Corporation.  All rights reserved.
4 // </copyright>                                                                
5 // <owner current="true" primary="true">[....]</owner>
6 //------------------------------------------------------------------------------
7
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;
14     using System.Xml.Xsl;
15     using System.Collections;
16
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; } }
27     }
28 }