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

◆ ToInt64() [5/6]

override long System.Xml.Schema.XmlAnyConverter.ToInt64 ( object value)
inline

Definition at line 100 of file XmlAnyConverter.cs.

101 {
102 if (value == null)
103 {
104 throw new ArgumentNullException("value");
105 }
106 Type type = value.GetType();
107 if (type == XmlBaseConverter.XmlAtomicValueType)
108 {
109 return ((XmlAtomicValue)value).ValueAsLong;
110 }
111 return (long)ChangeTypeWildcardDestination(value, XmlBaseConverter.Int64Type, null);
112 }
object ChangeTypeWildcardDestination(object value, Type destinationType, IXmlNamespaceResolver nsResolver)
XmlBaseConverter(XmlSchemaType schemaType)

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