Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetXPathType()

XPathResultType MS.Internal.Xml.XPath.Query.GetXPathType ( object value)
inlineprotectedinherited

Definition at line 147 of file Query.cs.

148 {
150 {
151 return XPathResultType.NodeSet;
152 }
153 if (value is string)
154 {
155 return XPathResultType.String;
156 }
157 if (value is double)
158 {
159 return XPathResultType.Number;
160 }
161 if (value is bool)
162 {
163 return XPathResultType.Boolean;
164 }
165 return (XPathResultType)4;
166 }

References System.value.

Referenced by MS.Internal.Xml.XPath.IDQuery.Evaluate(), MS.Internal.Xml.XPath.LogicalExpr.Evaluate(), MS.Internal.Xml.XPath.NumberFunctions.Number(), and MS.Internal.Xml.XPath.StringFunctions.toString().