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

◆ ToDouble() [2/2]

static double System.Xml.XmlConverter.ToDouble ( string value)
inlinestatic

Definition at line 187 of file XmlConverter.cs.

188 {
189 try
190 {
191 return XmlConvert.ToDouble(value);
192 }
194 {
195 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(value, "double", exception));
196 }
197 catch (FormatException exception2)
198 {
199 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(value, "double", exception2));
200 }
201 catch (OverflowException exception3)
202 {
203 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(value, "double", exception3));
204 }
205 }

References System.Xml.XmlExceptionHelper.CreateConversionException(), System.Xml.Dictionary, System.exception, System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(), System.Xml.XmlConvert.ToDouble(), and System.value.

Referenced by System.Runtime.Serialization.Json.JsonObjectDataContract.ParseJsonNumber(), System.Xml.XmlBaseReader.ReadContentAsDouble(), System.Xml.XmlDictionaryReader.ReadElementContentAsDouble(), System.Xml.ValueHandle.ToDouble(), and System.Xml.XmlConverter.ToDouble().