1 //------------------------------------------------------------------------------
2 // <copyright file="Operand.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;
15 internal class Operand : AstNode {
16 private XPathResultType type;
19 public Operand(string val) {
20 this.type = XPathResultType.String;
24 public Operand(double val) {
25 this.type = XPathResultType.Number;
29 public Operand(bool val) {
30 this.type = XPathResultType.Boolean;
34 public override AstType Type { get { return AstType.ConstantOperand; } }
35 public override XPathResultType ReturnType { get { return type; } }
37 public object OperandValue { get { return val; } }