594b9c8aeadb8c8310fc0e022607d5dc33af8efc
[mono.git] / mcs / class / referencesource / System.Xml / System / Xml / XPath / Internal / Variable.cs
1 //------------------------------------------------------------------------------
2 // <copyright file="Variable.cs" company="Microsoft">
3 //     Copyright (c) Microsoft Corporation.  All rights reserved.
4 // </copyright>                                                                
5 // <owner current="true" primary="true">Microsoft</owner>
6 //------------------------------------------------------------------------------
7
8 namespace MS.Internal.Xml.XPath {
9     using System;
10     using System.Xml;
11     using System.Xml.XPath;
12
13     internal class Variable : AstNode {
14         private string localname;
15             private string prefix;
16
17         public Variable(string name, string prefix) {
18             this.localname = name;
19                 this.prefix    = prefix;
20         }
21
22         public override AstType         Type       { get {return AstType.Variable   ; } }
23         public override XPathResultType ReturnType { get {return XPathResultType.Any; } }
24         
25         public string Localname { get { return localname; } }
26         public string Prefix    { get { return prefix;    } }
27     }
28 }