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

◆ ToUInt64() [2/2]

static ulong System.Xml.XmlConverter.ToUInt64 ( string value)
inlinestatic

Definition at line 349 of file XmlConverter.cs.

350 {
351 try
352 {
353 return ulong.Parse(value, NumberStyles.Any, NumberFormatInfo.InvariantInfo);
354 }
356 {
357 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(value, "UInt64", exception));
358 }
359 catch (FormatException exception2)
360 {
361 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(value, "UInt64", exception2));
362 }
363 catch (OverflowException exception3)
364 {
365 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(value, "UInt64", exception3));
366 }
367 }

References System.Xml.XmlExceptionHelper.CreateConversionException(), System.Xml.Dictionary, System.exception, System.Globalization.NumberFormatInfo.InvariantInfo, System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(), and System.value.

Referenced by System.Runtime.Serialization.EnumDataContract.GetEnumValueFromString(), System.Xml.XmlBaseReader.ReadContentAs(), System.Runtime.Serialization.XmlReaderDelegator.ReadContentAsUnsignedLong(), System.Runtime.Serialization.XmlReaderDelegator.ReadElementContentAsUnsignedLong(), System.Xml.XmlConverter.ToUInt64(), and System.Xml.ValueHandle.ToULong().