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

◆ GetTypeCode()

static TypeCode System.Xml.Xsl.Runtime.XsltLibrary.GetTypeCode ( XPathItem item)
inlinestaticprivate

Definition at line 236 of file XsltLibrary.cs.

237 {
238 Type valueType = item.ValueType;
239 if (valueType == XsltConvert.StringType)
240 {
241 return TypeCode.String;
242 }
243 if (valueType == XsltConvert.DoubleType)
244 {
245 return TypeCode.Double;
246 }
247 return TypeCode.Boolean;
248 }

References System.Xml.Xsl.Runtime.XsltConvert.DoubleType, System.item, and System.Xml.Xsl.Runtime.XsltConvert.StringType.

Referenced by System.Xml.Xsl.Runtime.XsltLibrary.EqualityOperator(), and System.Xml.Xsl.Runtime.XsltLibrary.RelationalOperator().