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

◆ ChangeType() [9/9]

override object System.Xml.Schema.XmlNumeric10Converter.ChangeType ( string value,
Type destinationType,
IXmlNamespaceResolver nsResolver )
inline

Definition at line 314 of file XmlNumeric10Converter.cs.

315 {
316 if (value == null)
317 {
318 throw new ArgumentNullException("value");
319 }
320 if (destinationType == null)
321 {
322 throw new ArgumentNullException("destinationType");
323 }
324 if (destinationType == XmlBaseConverter.ObjectType)
325 {
326 destinationType = base.DefaultClrType;
327 }
328 if (destinationType == XmlBaseConverter.DecimalType)
329 {
330 return ToDecimal(value);
331 }
332 if (destinationType == XmlBaseConverter.Int32Type)
333 {
334 return ToInt32(value);
335 }
336 if (destinationType == XmlBaseConverter.Int64Type)
337 {
338 return ToInt64(value);
339 }
340 if (destinationType == XmlBaseConverter.StringType)
341 {
342 return value;
343 }
344 if (destinationType == XmlBaseConverter.XmlAtomicValueType)
345 {
346 return new XmlAtomicValue(base.SchemaType, value);
347 }
348 if (destinationType == XmlBaseConverter.XPathItemType)
349 {
350 return new XmlAtomicValue(base.SchemaType, value);
351 }
353 }
XmlBaseConverter(XmlSchemaType schemaType)
override decimal ToDecimal(string value)
object ChangeTypeWildcardSource(object value, Type destinationType, IXmlNamespaceResolver nsResolver)

References System.Xml.Schema.XmlNumeric10Converter.ChangeTypeWildcardSource(), System.Xml.Schema.XmlBaseConverter.DecimalType, System.Xml.Dictionary, System.Xml.Schema.XmlBaseConverter.Int32Type, System.Xml.Schema.XmlBaseConverter.Int64Type, System.Xml.Schema.XmlBaseConverter.ObjectType, System.Xml.Schema.XmlBaseConverter.StringType, System.Xml.Schema.XmlNumeric10Converter.ToDecimal(), System.Xml.Schema.XmlNumeric10Converter.ToInt32(), System.Xml.Schema.XmlNumeric10Converter.ToInt64(), System.value, System.Xml.Schema.XmlBaseConverter.XmlAtomicValueType, and System.Xml.Schema.XmlBaseConverter.XPathItemType.