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

◆ ReadContentAsDouble()

virtual double System.Xml.XmlReader.ReadContentAsDouble ( )
inlinevirtualinherited

Reimplemented in System.Runtime.Serialization.XmlSerializableReader, System.Xml.XmlBaseReader, System.Xml.XmlDictionaryReader.XmlWrappedReader, System.Xml.XmlAsyncCheckReader, System.Xml.XmlSqlBinaryReader, System.Xml.XmlSubtreeReader, and System.Xml.XsdValidatingReader.

Definition at line 206 of file XmlReader.cs.

207 {
208 if (!CanReadContentAs())
209 {
210 throw CreateReadContentAsException("ReadContentAsDouble");
211 }
212 try
213 {
214 return XmlConvert.ToDouble(InternalReadContentAsString());
215 }
216 catch (FormatException innerException)
217 {
218 throw new XmlException(System.SR.Xml_ReadContentAsFormatException, "Double", innerException, this as IXmlLineInfo);
219 }
220 }
static string Xml_ReadContentAsFormatException
Definition SR.cs:190
Definition SR.cs:7
Exception CreateReadContentAsException(string methodName)
string InternalReadContentAsString()

References System.Xml.XmlReader.CanReadContentAs(), System.Xml.XmlReader.CreateReadContentAsException(), System.Xml.Dictionary, System.Xml.XmlReader.InternalReadContentAsString(), System.Xml.XmlConvert.ToDouble(), System.SR.Xml_ReadContentAsFormatException, and System.Xml.XmlException.

Referenced by System.Runtime.Serialization.XmlReaderDelegator.ReadContentAsDouble(), System.Runtime.Serialization.XmlSerializableReader.ReadContentAsDouble(), System.Xml.XmlDictionaryReader.XmlWrappedReader.ReadContentAsDouble(), System.Xml.XmlAsyncCheckReader.ReadContentAsDouble(), System.Xml.XmlSubtreeReader.ReadContentAsDouble(), System.Xml.XmlDictionaryReader.ReadElementContentAsDouble(), System.Xml.XmlReader.ReadElementContentAsDouble(), and System.Xml.XmlBinaryWriter.WriteTextNode().