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

◆ EXslObjectType()

static string System.Xml.Xsl.Runtime.XsltFunctions.EXslObjectType ( IList< XPathItem > value)
inlinestatic

Definition at line 248 of file XsltFunctions.cs.

249 {
250 if (value.Count != 1)
251 {
252 return "node-set";
253 }
255 if (xPathItem is RtfNavigator)
256 {
257 return "RTF";
258 }
259 if (xPathItem.IsNode)
260 {
261 return "node-set";
262 }
263 object typedValue = xPathItem.TypedValue;
264 if (typedValue is string)
265 {
266 return "string";
267 }
268 if (typedValue is double)
269 {
270 return "number";
271 }
272 if (typedValue is bool)
273 {
274 return "boolean";
275 }
276 return "external";
277 }

References System.value.