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

◆ ChangeType() [2/9]

override object System.Xml.Schema.XmlAnyConverter.ChangeType ( DateTime value,
Type destinationType )
inline

Definition at line 145 of file XmlAnyConverter.cs.

146 {
147 if (destinationType == null)
148 {
149 throw new ArgumentNullException("destinationType");
150 }
151 if (destinationType == XmlBaseConverter.ObjectType)
152 {
153 destinationType = base.DefaultClrType;
154 }
155 if (destinationType == XmlBaseConverter.XmlAtomicValueType)
156 {
157 return new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.DateTime), value);
158 }
160 }
object ChangeTypeWildcardSource(object value, Type destinationType, IXmlNamespaceResolver nsResolver)
XmlBaseConverter(XmlSchemaType schemaType)

References System.Xml.Schema.XmlAnyConverter.ChangeTypeWildcardSource(), System.Xml.Dictionary, System.Xml.Schema.XmlSchemaType.GetBuiltInSimpleType(), System.Xml.Schema.XmlBaseConverter.ObjectType, System.value, and System.Xml.Schema.XmlBaseConverter.XmlAtomicValueType.