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

◆ ChangeType() [9/9]

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

Definition at line 33 of file XmlStringConverter.cs.

34 {
35 if (value == null)
36 {
37 throw new ArgumentNullException("value");
38 }
39 if (destinationType == null)
40 {
41 throw new ArgumentNullException("destinationType");
42 }
43 if (destinationType == XmlBaseConverter.ObjectType)
44 {
45 destinationType = base.DefaultClrType;
46 }
47 if (destinationType == XmlBaseConverter.StringType)
48 {
49 return value;
50 }
51 if (destinationType == XmlBaseConverter.XmlAtomicValueType)
52 {
53 return new XmlAtomicValue(base.SchemaType, value);
54 }
55 if (destinationType == XmlBaseConverter.XPathItemType)
56 {
57 return new XmlAtomicValue(base.SchemaType, value);
58 }
60 }
virtual object ChangeListType(object value, Type destinationType, IXmlNamespaceResolver nsResolver)
XmlBaseConverter(XmlSchemaType schemaType)

References System.Xml.Schema.XmlBaseConverter.ChangeListType(), System.Xml.Dictionary, System.Xml.Schema.XmlBaseConverter.ObjectType, System.Xml.Schema.XmlBaseConverter.StringType, System.value, System.Xml.Schema.XmlBaseConverter.XmlAtomicValueType, and System.Xml.Schema.XmlBaseConverter.XPathItemType.