File: System\Xml\XPath\Internal\ValueQuery.cs
Web Access
Project: src\src\libraries\System.Private.Xml\src\System.Private.Xml.csproj (System.Private.Xml)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System;
using System.Xml;
using System.Xml.XPath;
 
namespace MS.Internal.Xml.XPath
{
    internal abstract class ValueQuery : Query
    {
        public ValueQuery() { }
        protected ValueQuery(ValueQuery other) : base(other) { }
        public sealed override void Reset() { }
        public sealed override XPathNavigator Current { get { throw XPathException.Create(SR.Xp_NodeSetExpected); } }
        public sealed override int CurrentPosition { get { throw XPathException.Create(SR.Xp_NodeSetExpected); } }
        public sealed override int Count { get { throw XPathException.Create(SR.Xp_NodeSetExpected); } }
        public sealed override XPathNavigator Advance() { throw XPathException.Create(SR.Xp_NodeSetExpected); }
    }
}