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

◆ ReadElementContentAsDouble() [1/2]

override double System.Xml.XsdValidatingReader.ReadElementContentAsDouble ( )
inlinevirtual

Reimplemented from System.Xml.XmlReader.

Definition at line 850 of file XsdValidatingReader.cs.

851 {
852 if (NodeType != XmlNodeType.Element)
853 {
854 throw CreateReadElementContentAsException("ReadElementContentAsDouble");
855 }
856 XmlSchemaType xmlType;
858 try
859 {
860 return xmlType?.ValueConverter.ToDouble(value) ?? XmlUntypedConverter.Untyped.ToDouble(value);
861 }
862 catch (FormatException innerException)
863 {
865 }
866 catch (InvalidCastException innerException2)
867 {
869 }
870 catch (OverflowException innerException3)
871 {
873 }
874 }
static string Xml_ReadContentAsFormatException
Definition SR.cs:190
Definition SR.cs:7
static readonly XmlValueConverter Untyped
Exception CreateReadElementContentAsException(string methodName)
object InternalReadElementContentAsObject(out XmlSchemaType xmlType)

References System.Xml.XmlReader.CreateReadElementContentAsException(), System.Xml.XsdValidatingReader.InternalReadElementContentAsObject(), System.Xml.XsdValidatingReader.NodeType, System.Xml.Schema.XmlValueConverter.ToDouble(), System.Xml.Schema.XmlUntypedConverter.Untyped, System.value, System.Xml.Schema.XmlSchemaType.ValueConverter, System.SR.Xml_ReadContentAsFormatException, and System.Xml.XmlException.