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

◆ ReadElementContentAsUnsignedLong()

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

Reimplemented from System.Runtime.Serialization.XmlReaderDelegator.

Definition at line 268 of file JsonReaderDelegator.cs.

269 {
271 {
272 throw new XmlException(System.SR.Format(System.SR.XmlStartElementExpected, "EndElement"));
273 }
275 if (text == null || text.Length == 0)
276 {
277 throw new XmlException(XmlObjectSerializer.TryAddLineInfo(this, System.SR.Format(System.SR.XmlInvalidConversion, text, "UInt64")));
278 }
279 try
280 {
281 return ulong.Parse(text, NumberStyles.Float, NumberFormatInfo.InvariantInfo);
282 }
284 {
286 }
287 catch (FormatException exception2)
288 {
290 }
291 catch (OverflowException exception3)
292 {
294 }
295 }
static string XmlInvalidConversion
Definition SR.cs:312
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string XmlStartElementExpected
Definition SR.cs:316
Definition SR.cs:7
static XmlException CreateConversionException(string type, Exception exception)
virtual string ReadElementContentAsString()
Definition XmlReader.cs:456

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