1 //------------------------------------------------------------------------------
2 // <copyright file="OperandQuery.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;
13 using System.Globalization;
14 using System.Collections;
16 internal sealed class OperandQuery : ValueQuery {
19 public OperandQuery(object val) {
23 public override object Evaluate(XPathNodeIterator nodeIterator) {
26 public override XPathResultType StaticType { get { return GetXPathType(val); } }
27 public override XPathNodeIterator Clone() { return this; }
29 public override void PrintQuery(XmlWriter w) {
30 w.WriteStartElement(this.GetType().Name);
31 w.WriteAttributeString("value", Convert.ToString(val, CultureInfo.InvariantCulture));