Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
QilLiteral.cs
Go to the documentation of this file.
1namespace System.Xml.Xsl.Qil;
2
3internal class QilLiteral : QilNode
4{
5 private object _value;
6
7 public object Value
8 {
9 get
10 {
11 return _value;
12 }
13 set
14 {
15 _value = value;
16 }
17 }
18
20 : base(nodeType)
21 {
22 Value = value;
23 }
24
25 public static implicit operator string(QilLiteral literal)
26 {
27 return (string)literal._value;
28 }
29
30 public static implicit operator int(QilLiteral literal)
31 {
32 return (int)literal._value;
33 }
34
35 public static implicit operator long(QilLiteral literal)
36 {
37 return (long)literal._value;
38 }
39
40 public static implicit operator double(QilLiteral literal)
41 {
42 return (double)literal._value;
43 }
44
45 public static implicit operator decimal(QilLiteral literal)
46 {
47 return (decimal)literal._value;
48 }
49
50 public static implicit operator XmlQueryType(QilLiteral literal)
51 {
52 return (XmlQueryType)literal._value;
53 }
54}
QilLiteral(QilNodeType nodeType, object value)
Definition QilLiteral.cs:19