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

◆ ToInt32() [5/6]

override int System.Xml.Schema.XmlAnyConverter.ToInt32 ( object value)
inline

Definition at line 86 of file XmlAnyConverter.cs.

87 {
88 if (value == null)
89 {
90 throw new ArgumentNullException("value");
91 }
92 Type type = value.GetType();
93 if (type == XmlBaseConverter.XmlAtomicValueType)
94 {
95 return ((XmlAtomicValue)value).ValueAsInt;
96 }
97 return (int)ChangeTypeWildcardDestination(value, XmlBaseConverter.Int32Type, null);
98 }
object ChangeTypeWildcardDestination(object value, Type destinationType, IXmlNamespaceResolver nsResolver)
XmlBaseConverter(XmlSchemaType schemaType)

References System.Xml.Schema.XmlAnyConverter.ChangeTypeWildcardDestination(), System.Type.GetType(), System.Xml.Schema.XmlBaseConverter.Int32Type, System.type, System.value, and System.Xml.Schema.XmlBaseConverter.XmlAtomicValueType.