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

◆ ToInt32() [2/2]

static int System.Xml.XmlConverter.ToInt32 ( string value)
inlinestatic

Definition at line 100 of file XmlConverter.cs.

101 {
102 try
103 {
104 return XmlConvert.ToInt32(value);
105 }
107 {
108 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(value, "Int32", exception));
109 }
110 catch (FormatException exception2)
111 {
112 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(value, "Int32", exception2));
113 }
114 catch (OverflowException exception3)
115 {
116 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(value, "Int32", exception3));
117 }
118 }

References System.Xml.XmlExceptionHelper.CreateConversionException(), System.Xml.Dictionary, System.exception, System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(), System.Xml.XmlConvert.ToInt32(), and System.value.

Referenced by System.Xml.XmlBaseReader.ReadContentAsInt(), System.Xml.XmlDictionaryReader.ReadElementContentAsInt(), System.Xml.ValueHandle.ToInt(), and System.Xml.XmlConverter.ToInt32().