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

◆ StaticType

override XPathResultType MS.Internal.Xml.XPath.VariableQuery.StaticType
get

Definition at line 11 of file VariableQuery.cs.

12 {
13 get
14 {
15 if (_variable != null)
16 {
17 return GetXPathType(Evaluate(null));
18 }
19 XPathResultType xPathResultType = ((_variable != null) ? _variable.VariableType : XPathResultType.Any);
20 if (xPathResultType == XPathResultType.Error)
21 {
22 xPathResultType = XPathResultType.Any;
23 }
24 return xPathResultType;
25 }
26 }
XPathResultType GetXPathType(object value)
Definition Query.cs:147
override object Evaluate(XPathNodeIterator nodeIterator)