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

◆ ToSingle() [2/3]

override float System.Xml.Schema.XmlAnyConverter.ToSingle ( object value)
inline

Definition at line 114 of file XmlAnyConverter.cs.

115 {
116 if (value == null)
117 {
118 throw new ArgumentNullException("value");
119 }
120 Type type = value.GetType();
121 if (type == XmlBaseConverter.XmlAtomicValueType)
122 {
123 return (float)((XmlAtomicValue)value).ValueAs(XmlBaseConverter.SingleType);
124 }
125 return (float)ChangeTypeWildcardDestination(value, XmlBaseConverter.SingleType, null);
126 }
object ChangeTypeWildcardDestination(object value, Type destinationType, IXmlNamespaceResolver nsResolver)
XmlBaseConverter(XmlSchemaType schemaType)

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