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

◆ ChangeTypeWildcardDestination()

object System.Xml.Schema.XmlNumeric10Converter.ChangeTypeWildcardDestination ( object value,
Type destinationType,
IXmlNamespaceResolver nsResolver )
inlineprivate

Definition at line 483 of file XmlNumeric10Converter.cs.

484 {
485 Type type = value.GetType();
486 if (type == XmlBaseConverter.ByteType)
487 {
488 return ChangeType((byte)value, destinationType);
489 }
490 if (type == XmlBaseConverter.Int16Type)
491 {
492 return ChangeType((short)value, destinationType);
493 }
494 if (type == XmlBaseConverter.SByteType)
495 {
496 return ChangeType((sbyte)value, destinationType);
497 }
498 if (type == XmlBaseConverter.UInt16Type)
499 {
500 return ChangeType((ushort)value, destinationType);
501 }
502 if (type == XmlBaseConverter.UInt32Type)
503 {
504 return ChangeType((uint)value, destinationType);
505 }
506 if (type == XmlBaseConverter.UInt64Type)
507 {
508 return ChangeType((decimal)(ulong)value, destinationType);
509 }
511 }
virtual object ChangeListType(object value, Type destinationType, IXmlNamespaceResolver nsResolver)
XmlBaseConverter(XmlSchemaType schemaType)
override object ChangeType(decimal value, Type destinationType)

References System.Xml.Schema.XmlBaseConverter.ByteType, System.Xml.Schema.XmlBaseConverter.ChangeListType(), System.Xml.Schema.XmlNumeric10Converter.ChangeType(), System.Xml.Dictionary, System.Type.GetType(), System.Xml.Schema.XmlBaseConverter.Int16Type, System.Xml.Schema.XmlBaseConverter.SByteType, System.type, System.Xml.Schema.XmlBaseConverter.UInt16Type, System.Xml.Schema.XmlBaseConverter.UInt32Type, System.Xml.Schema.XmlBaseConverter.UInt64Type, and System.value.

Referenced by System.Xml.Schema.XmlNumeric10Converter.ToDecimal(), System.Xml.Schema.XmlNumeric10Converter.ToInt32(), System.Xml.Schema.XmlNumeric10Converter.ToInt64(), and System.Xml.Schema.XmlNumeric10Converter.ToString().