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

◆ ReadContentAsLong()

override long System.Runtime.Serialization.Json.XmlJsonReader.ReadContentAsLong ( )
inlinevirtual

Reimplemented from System.Xml.XmlReader.

Definition at line 456 of file XmlJsonReader.cs.

457 {
458 string text = ReadContentAsString();
459 try
460 {
461 return long.Parse(text, NumberStyles.Float, NumberFormatInfo.InvariantInfo);
462 }
464 {
466 }
467 catch (FormatException exception2)
468 {
470 }
471 catch (OverflowException exception3)
472 {
474 }
475 }
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.