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

◆ ReadContentAsUnsignedLong()

override ulong System.Runtime.Serialization.Json.JsonReaderDelegator.ReadContentAsUnsignedLong ( )
inlinepackagevirtual

Reimplemented from System.Runtime.Serialization.XmlReaderDelegator.

Definition at line 243 of file JsonReaderDelegator.cs.

244 {
246 if (text == null || text.Length == 0)
247 {
248 throw new XmlException(XmlObjectSerializer.TryAddLineInfo(this, System.SR.Format(System.SR.XmlInvalidConversion, text, "UInt64")));
249 }
250 try
251 {
252 return ulong.Parse(text, NumberStyles.Float, NumberFormatInfo.InvariantInfo);
253 }
255 {
257 }
258 catch (FormatException exception2)
259 {
261 }
262 catch (OverflowException exception3)
263 {
265 }
266 }
static string XmlInvalidConversion
Definition SR.cs:312
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
Definition SR.cs:7
static XmlException CreateConversionException(string type, Exception exception)
virtual string ReadContentAsString()
Definition XmlReader.cs:286

References System.Xml.XmlExceptionHelper.CreateConversionException(), System.Runtime.Serialization.Dictionary, System.exception, System.SR.Format(), System.Globalization.NumberFormatInfo.InvariantInfo, System.Xml.XmlReader.ReadContentAsString(), System.Runtime.Serialization.XmlReaderDelegator.reader, System.text, System.Runtime.Serialization.XmlObjectSerializer.TryAddLineInfo(), System.Xml.XmlException, and System.SR.XmlInvalidConversion.