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

◆ InferXsltType()

static XmlQueryType System.Xml.Xsl.Runtime.XsltConvert.InferXsltType ( Type clrType)
inlinestaticpackage

Definition at line 319 of file XsltConvert.cs.

320 {
321 if (clrType == BooleanType)
322 {
323 return XmlQueryTypeFactory.BooleanX;
324 }
325 if (clrType == ByteType)
326 {
327 return XmlQueryTypeFactory.DoubleX;
328 }
329 if (clrType == DecimalType)
330 {
331 return XmlQueryTypeFactory.DoubleX;
332 }
333 if (clrType == DateTimeType)
334 {
335 return XmlQueryTypeFactory.StringX;
336 }
337 if (clrType == DoubleType)
338 {
339 return XmlQueryTypeFactory.DoubleX;
340 }
341 if (clrType == Int16Type)
342 {
343 return XmlQueryTypeFactory.DoubleX;
344 }
345 if (clrType == Int32Type)
346 {
347 return XmlQueryTypeFactory.DoubleX;
348 }
349 if (clrType == Int64Type)
350 {
351 return XmlQueryTypeFactory.DoubleX;
352 }
354 {
355 return XmlQueryTypeFactory.NodeNotRtf;
356 }
357 if (clrType == SByteType)
358 {
359 return XmlQueryTypeFactory.DoubleX;
360 }
361 if (clrType == SingleType)
362 {
363 return XmlQueryTypeFactory.DoubleX;
364 }
365 if (clrType == StringType)
366 {
367 return XmlQueryTypeFactory.StringX;
368 }
369 if (clrType == UInt16Type)
370 {
371 return XmlQueryTypeFactory.DoubleX;
372 }
373 if (clrType == UInt32Type)
374 {
375 return XmlQueryTypeFactory.DoubleX;
376 }
377 if (clrType == UInt64Type)
378 {
379 return XmlQueryTypeFactory.DoubleX;
380 }
382 {
383 return XmlQueryTypeFactory.NodeSDod;
384 }
386 {
387 return XmlQueryTypeFactory.NodeNotRtf;
388 }
390 {
391 return XmlQueryTypeFactory.NodeSDod;
392 }
393 if (clrType.IsEnum)
394 {
395 return XmlQueryTypeFactory.DoubleX;
396 }
397 if (clrType == VoidType)
398 {
399 return XmlQueryTypeFactory.Empty;
400 }
401 return XmlQueryTypeFactory.ItemS;
402 }
static readonly Type XPathNavigatorArrayType
static readonly Type IXPathNavigableType
static readonly Type BooleanType
static readonly Type StringType
static readonly Type SByteType
static readonly Type ByteType
static readonly Type VoidType
static readonly Type DoubleType
static readonly Type SingleType
static readonly Type DecimalType
static readonly Type UInt16Type
static readonly Type Int16Type
static readonly Type DateTimeType
static readonly Type Int32Type
static readonly Type Int64Type
static readonly Type XPathNodeIteratorType
static readonly Type UInt64Type
static readonly Type UInt32Type
static readonly Type XPathNavigatorType

References System.Xml.Xsl.Runtime.XsltConvert.BooleanType, System.Xml.Xsl.XmlQueryTypeFactory.BooleanX, System.Xml.Xsl.Runtime.XsltConvert.ByteType, System.Xml.Xsl.Runtime.XsltConvert.DateTimeType, System.Xml.Xsl.Runtime.XsltConvert.DecimalType, System.Xml.Xsl.Runtime.XsltConvert.DoubleType, System.Xml.Xsl.XmlQueryTypeFactory.DoubleX, System.Xml.Xsl.XmlQueryTypeFactory.Empty, System.Xml.Xsl.Runtime.XsltConvert.Int16Type, System.Xml.Xsl.Runtime.XsltConvert.Int32Type, System.Xml.Xsl.Runtime.XsltConvert.Int64Type, System.Xml.Xsl.XmlQueryTypeFactory.ItemS, System.Xml.Xsl.Runtime.XsltConvert.IXPathNavigableType, System.Xml.Xsl.XmlQueryTypeFactory.NodeNotRtf, System.Xml.Xsl.XmlQueryTypeFactory.NodeSDod, System.Xml.Xsl.Runtime.XsltConvert.SByteType, System.Xml.Xsl.Runtime.XsltConvert.SingleType, System.Xml.Xsl.Runtime.XsltConvert.StringType, System.Xml.Xsl.XmlQueryTypeFactory.StringX, System.Xml.Xsl.Runtime.XsltConvert.UInt16Type, System.Xml.Xsl.Runtime.XsltConvert.UInt32Type, System.Xml.Xsl.Runtime.XsltConvert.UInt64Type, System.Xml.Xsl.Runtime.XsltConvert.VoidType, System.Xml.Xsl.Runtime.XsltConvert.XPathNavigatorArrayType, System.Xml.Xsl.Runtime.XsltConvert.XPathNavigatorType, and System.Xml.Xsl.Runtime.XsltConvert.XPathNodeIteratorType.

Referenced by System.Xml.Xsl.Runtime.XmlQueryRuntime.ChangeTypeXsltResult(), and System.Xml.Xsl.Runtime.XmlExtensionFunction.InferXmlType().