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

◆ ReadContentAsDecimal()

override decimal System.Runtime.Serialization.Json.XmlJsonReader.ReadContentAsDecimal ( )
inlinevirtual

Reimplemented from System.Xml.XmlReader.

Definition at line 430 of file XmlJsonReader.cs.

431 {
432 string text = ReadContentAsString();
433 try
434 {
435 return decimal.Parse(text, NumberStyles.Float, NumberFormatInfo.InvariantInfo);
436 }
438 {
440 }
441 catch (FormatException exception2)
442 {
444 }
445 catch (OverflowException exception3)
446 {
448 }
449 }
override string ReadContentAsString()
static XmlException CreateConversionException(string type, Exception exception)

References System.Xml.XmlExceptionHelper.CreateConversionException(), System.Runtime.Serialization.Dictionary, System.exception, System.Globalization.NumberFormatInfo.InvariantInfo, System.Xml.XmlBaseReader.ReadContentAsString(), and System.text.